import { MultiSelect } from '@arctic-kit/snow';function Demo() {return (<MultiSelectlabel="Colors" placeholder="Pick a value" fullWidth clearable color="primary" size="medium"options={[{ label: 'Green', value: 'green' },{ label: 'Blue', value: 'blue' },{ label: 'Red', value: 'red' },{ label: 'Yellow', value: 'yellow' },{ label: 'Orange', value: 'orange' },{ label: 'Pink', value: 'pink' },{ label: 'Purple', value: 'purple' },{ label: 'Grey', value: 'grey' },]}/>);}
import { MultiSelect } from '@arctic-kit/snow';function Demo() {return (<MultiSelectlabel="Colors" placeholder="Pick a value" required errorText="Required field"options={[{ label: 'Green', value: 'green' },{ label: 'Blue', value: 'blue' },{ label: 'Red', value: 'red' },{ label: 'Yellow', value: 'yellow' },{ label: 'Orange', value: 'orange' },{ label: 'Pink', value: 'pink' },{ label: 'Purple', value: 'purple' },{ label: 'Grey', value: 'grey' },]}/>);}
Props | Type | Default |
---|---|---|
clearable | boolean | undefined | --- |
color | SnowColor | "primary" |
disabled | boolean | undefined | --- |
errorText | string | undefined | --- |
fullWidth | boolean | undefined | --- |
label | string | undefined | --- |
onChange | (value: SelectKeyValue[]) => void | --- |
options | SelectKeyValue[] | --- |
placeholder | string | undefined | --- |
required | boolean | undefined | --- |
searchable | boolean | undefined | --- |
size | "small" | "medium" | "large" | "medium" |
value | SelectKeyValue[] | --- |