5.1.1 • Published 9 months ago
@spark-web/multi-select v5.1.1
title: Multi-Select storybookPath: forms-select--default
isExperimentalPackage: true
Allows the user to search and make multi selection from a list of values.
Example
Default
const [selectedOptions, setSelectedOptions] = React.useState();
return (
<Stack gap="large">
<MultiSelect
options={[
{
label: '',
options: [
{ value: 'SENT', label: 'Sent' },
{ value: 'COMPLETED', label: 'Completed' },
],
},
]}
/>
</Stack>
);With Default Option
const [selectedOptions, setSelectedOptions] = React.useState();
return (
<Stack gap="large">
<MultiSelect
options={[
{
label: 'Status',
options: [
{ value: 'SENT', label: 'Sent' },
{ value: 'COMPLETED', label: 'Completed' },
],
},
{
label: 'Payment',
options: [
{ value: 'CASH', label: 'Cash' },
{ value: 'CARD', label: 'Card' },
],
},
]}
placeholder="Select type"
onChange={selected => setSelectedOptions(selected)}
defaultOptions={[
{ value: 'CASH', label: 'Cash' },
{ value: 'SENT', label: 'Sent' },
]}
/>
</Stack>
);Props
5.0.4
9 months ago
5.0.3
9 months ago
5.1.1
9 months ago
5.0.2
9 months ago
5.1.0
9 months ago
5.0.1
9 months ago
5.0.0
10 months ago
6.0.0
9 months ago
5.0.0-rc.24
11 months ago
5.0.0-rc.25
11 months ago
5.0.0-rc.26
11 months ago
5.0.0-rc.27
11 months ago
5.0.0-rc.28
11 months ago
5.0.0-rc.29
11 months ago
1.0.0-rc.20
12 months ago
1.0.0-rc.21
12 months ago
1.0.0-rc.9
1 year ago
1.0.0-rc.7
1 year ago
1.0.0-rc.8
1 year ago
1.0.0-rc.5
1 year ago
5.0.0-rc.31
10 months ago
1.0.0-rc.6
1 year ago
1.0.0-rc.13
1 year ago
1.0.0-rc.12
1 year ago
1.0.0-rc.11
1 year ago
1.0.0-rc.10
1 year ago
1.0.0-rc.17
1 year ago
1.0.0-rc.3
1 year ago
1.0.0-rc.16
1 year ago
1.0.0-rc.4
1 year ago
1.0.0-rc.15
1 year ago
1.0.0-rc.1
1 year ago
1.0.0-rc.14
1 year ago
1.0.0-rc.2
1 year ago
1.0.0-rc.0
1 year ago
1.0.0-rc.19
1 year ago
1.0.0-rc.18
1 year ago
0.0.2
1 year ago
0.0.1
1 year ago