5.1.1 • Published 4 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
4 months ago
5.0.3
5 months ago
5.1.1
4 months ago
5.0.2
5 months ago
5.1.0
4 months ago
5.0.1
5 months ago
5.0.0
6 months ago
6.0.0
5 months ago
5.0.0-rc.24
6 months ago
5.0.0-rc.25
6 months ago
5.0.0-rc.26
6 months ago
5.0.0-rc.27
6 months ago
5.0.0-rc.28
6 months ago
5.0.0-rc.29
6 months ago
1.0.0-rc.20
7 months ago
1.0.0-rc.21
7 months ago
1.0.0-rc.9
8 months ago
1.0.0-rc.7
8 months ago
1.0.0-rc.8
8 months ago
1.0.0-rc.5
8 months ago
5.0.0-rc.31
6 months ago
1.0.0-rc.6
8 months ago
1.0.0-rc.13
8 months ago
1.0.0-rc.12
8 months ago
1.0.0-rc.11
8 months ago
1.0.0-rc.10
8 months ago
1.0.0-rc.17
8 months ago
1.0.0-rc.3
8 months ago
1.0.0-rc.16
8 months ago
1.0.0-rc.4
8 months ago
1.0.0-rc.15
8 months ago
1.0.0-rc.1
8 months ago
1.0.0-rc.14
8 months ago
1.0.0-rc.2
8 months ago
1.0.0-rc.0
8 months ago
1.0.0-rc.19
8 months ago
1.0.0-rc.18
8 months ago
0.0.2
12 months ago
0.0.1
12 months ago