Overview Button Copy button Field Input Number field Textarea Select Combobox Multiselect Date picker Date range picker Date-time picker Checkbox Radio group Position picker Switch Slider Dropzone Device controls Avatar Badge Card Collapsible Kbd Map Matrix Proportion bar Separator Stat Table Timeline Chat Playback Pagination Charts Chart theming Profile chart Time series chart Bar chart Isopleth chart TS diagram Box plot Rose chart Calendar chart Banner Toast Loader Progress Skeleton Empty state Error state Dropdown menu Tooltip Info tooltip Dialog Sheet Resizable Confirm dialog Breadcrumbs Command palette Mobile menu Navigation list Outline Scroll rail Sidebar Tabs
Multiselect
Pick several from a list: methods to filter by, waypoints to include, people to notify.
Tags in the field
What’s picked shows as tags; × takes one out, Backspace the last.
CTD Water samples
<Field label="Sampling methods">
<Multiselect bind:value={methods} options={[
{ value: 'ctd', label: 'CTD', dot: 'bg-violet-600' },
{ value: 'water', label: 'Water samples', dot: 'bg-sky-600' },
]} />
</Field>
<Multiselect bind:value={stations} options={waypoints} max={3} placeholder="Pick waypoints" /> Grouped, with a limit
Options under headings; past three tags, a count.
AU1 AU12 L3 +2
5 of 9 picked
With descriptions
Rules
- For several from a list too long to show as checkboxes. Up to about five options, show checkboxes.
- The list stays open while picking. Escape or a click away closes it.
- Where the tags would crowd the field, set `max`: the rest are counted, "+3".
- Identity colours as dots, the same as on tags elsewhere. Never a status.
- Search on what people know things by: an MMSI, an organization, as `keywords` or `description`.