Forms
Multi-select
Pick several values, shown as chips.
Usage
Pick several values. Each choice becomes a removable chip in the field; the list filters as you type, shows a checkbox per option and stays open so you can keep picking.
adagrace
Ada Lovelace
Grace Hopper
Katherine Johnson
Margaret Hamilton
Hedy Lamarr
Radia Perlman
Annie Easley
Mae Jemison
Reviewers are notified when the pull request opens.
When to use
- Assigning several people, tags or channels from a known list.
- Filters where the current selection should always be visible.
Not for: a handful of on/off options (use checkboxes), or one value (use a select or combobox).
Limit and overflow
max disables the remaining options once reached and shows “n selected of max”. maxChips collapses the rest into a “+n more” pill (default 3). Clear all sits above the options.
GeneralDesign+1 more
General
Design
Engineering
Support
Marketing
Finance
Random
Release notes post to every channel you pick, up to four.
API
MultiSelect
| Prop | Type | Default | Description |
|---|---|---|---|
| value / defaultValue | string[] | — | Selected values, in the order they were picked. |
| onValueChange | (value: string[]) => void | — | Called when a value is added or removed. |
| max | number | — | Most values that can be selected. |
| open / defaultOpen / onOpenChange | boolean | — | Control the list open state. |
| name | string | — | Submits one hidden input per value, all under this name. |
| disabled | boolean | false | Disables the field. |
MultiSelectInput
| Prop | Type | Default | Description |
|---|---|---|---|
| size | 'sm' | 'md' | 'lg' | 'md' | Height of one row: 32 / 36 / 44px. The field grows as chips wrap. |
| maxChips | number | 3 | Chips shown before “+n more”. |
| placeholder | string | — | Shown while nothing is selected. |
Also: MultiSelectContent, MultiSelectItem (value, disabled, textValue), MultiSelectEmpty, MultiSelectGroup, MultiSelectLabel and MultiSelectSeparator.
Keyboard
| Key | Action |
|---|---|
| Type | Filter the list; the first match is highlighted. |
| ↓ / ↑ | Open the list, then move the highlight. |
| Enter | Toggle the highlighted option; the list stays open. |
| Backspace (empty input) | Remove the last chip. |
| Esc | Close the list and clear the search text. |
Accessibility
- The input has role="combobox" and points at a listbox with aria-multiselectable; options expose aria-selected.
- Each chip’s remove button is labelled “Remove <name>”. Keyboard users remove with Backspace; the buttons stay out of the tab order.
- The “n selected” summary is a polite live region.
Motion
- Chips pop in with the soft rise; checkboxes change colour in 150ms.
- Reduced motion keeps the state change and drops the movement.