Skip to content
Browse docs and components

Multi Select

multi-select

Choose several options from a long list: removable chips you can type into to filter, over a list where each option toggles. Groups, a max with a counter, Backspace and arrow keys through the chips, and plain form submission — on Base UI's Combobox.

Responsive

Install

$npxshadcnadd@forme/multi-select

Adds the component, its registry dependencies, and the token stylesheet you import once.

API reference

Read from the source, so it is the API of the file you install. A prop marked * is required.

MultiSelect

Choose several things from a long list: a field of removable chips you can type into to filter, over a list where each option toggles.

PropTypeDefaultDescription
label*string—Visible label.
options*readonly MultiSelectOption[]—
valuestring[]—Selected values, in the order they were chosen.
defaultValuestring[][]
onValueChange(value: string[]) => void—
placeholderstring"Search…"
descriptionstring—Help text under the field. Replaced by error when there is one.
errorstring—
maxnumber—The most that can be chosen. The rest of the list waits until one is removed.
emptyMessagestring"No matches"Shown when the search matches nothing.
namestring—Submits each selected value under this name in a plain form.
disabledboolean—
classNamestring—