ui-kit0.0

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

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

Release notes post to every channel you pick, up to four.

API

MultiSelect

PropTypeDefaultDescription
value / defaultValuestring[]—Selected values, in the order they were picked.
onValueChange(value: string[]) => void—Called when a value is added or removed.
maxnumber—Most values that can be selected.
open / defaultOpen / onOpenChangeboolean—Control the list open state.
namestring—Submits one hidden input per value, all under this name.
disabledbooleanfalseDisables the field.

MultiSelectInput

PropTypeDefaultDescription
size'sm' | 'md' | 'lg''md'Height of one row: 32 / 36 / 44px. The field grows as chips wrap.
maxChipsnumber3Chips shown before “+n more”.
placeholderstring—Shown while nothing is selected.

Also: MultiSelectContent, MultiSelectItem (value, disabled, textValue), MultiSelectEmpty, MultiSelectGroup, MultiSelectLabel and MultiSelectSeparator.

Keyboard

KeyAction
TypeFilter the list; the first match is highlighted.
↓ / ↑Open the list, then move the highlight.
EnterToggle the highlighted option; the list stays open.
Backspace (empty input)Remove the last chip.
EscClose 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.