MultiSelect
Searchable multi-select filter with visible removable chips and a checkbox panel.
Design intent
Dashboard filters need to show the selected set without opening the control. MultiSelect pairs a searchable checkbox panel with chips outside the trigger, so the applied filters stay visible and removable.
npx @slipstream-ui/cli@latest add multi-selectSelected: technology
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| options | MultiSelectOption[] | required | Options: value, label, optional description, group and disabled. |
| value | string[] | — | Controlled selected values. |
| defaultValue | string[] | — | Initial selected values when uncontrolled. |
| onValueChange | (values: string[]) => void | — | Fires with the full selection. |
| label | string | — | Visible field label; also names the trigger. |
| triggerLabel | string | 'Add' | Trigger text when nothing is selected. |
| searchPlaceholder | string | 'Search options' | Search placeholder and accessible name. |
| emptyText | string | 'No options' | Shown when no option matches. |
| maxDisplay | number | 3 | Maximum chips before a +N more summary. |
| disabled | boolean | — | Disable the trigger and chip removal. |
Anti-patterns
validate_usage is the MCP tool that rejects these mistakes: the same list agents see over MCP and in the canonical markdown.
Don't put the chips inside the trigger
Chips carry remove buttons; nesting them in the trigger button creates invalid controls and conflicting click targets.
tsx// MultiSelect renders chips above the trigger by design.
Accessibility
- The trigger is named by the visible label and exposes aria-haspopup/aria-expanded.
- Options are native checkboxes with wrapping labels; each chip has a named remove button.
Composition
Compose with FilterPanel: Place MultiSelect inside a FilterPanel section
<FilterPanel sections={[{ title: 'Industry', content: <MultiSelect ... /> }]} />
Compose with AppliedFilters: AppliedFilters summarizes the same state outside the panel
<AppliedFilters filters={chips} />
Related components: FilterPanel, AppliedFilters, FilterChips, SelectMenu
Dependencies
What the registry installs alongside this component. Package imports already include these.
npm packages
- class-variance-authority
- clsx
- tailwind-merge
Browser support
| Browser | Tested versions |
|---|---|
| Chrome | 111+ (Mar 2023) |
| Edge | 111+ (Mar 2023) |
| Firefox | 121+ (Dec 2023) |
| Safari | 17.2+: macOS & iOS (Dec 2023) |
Slipstream components rely only on CSS custom properties, Flexbox/Grid, and ARIA, the everyday baseline of the last two years of evergreen releases. Anything newer is progressive enhancement: unsupported browsers keep full functionality with static behavior instead of animations.