Search...

Search documentation...

Multi Select

Multi Select

A searchable Command palette for choosing several values, shown as removable chips in the trigger. For a single value, see Select.

import { MultiSelect, type MultiSelectOption } from "@pompeitech/vesuvius-ui";

Default

Overflow (+N more)

API

MultiSelect

PropTypeDefaultDescription
optionsMultiSelectOption[]Required.
value / defaultValuestring[]Controlled/uncontrolled selected values.
onValueChange(values: string[]) => voidCalled whenever the selection changes.
size"xs" | "sm" | "default" | "lg""default"Fixed trigger height: 28, 32, 36, or 40 px.
placeholderstringShown on the trigger when nothing's selected.
maxDisplaynumberChips shown before the rest collapse into a "+N more" chip.
disabledbooleanfalse

MultiSelectOption

FieldTypeDescription
labelstringRequired.
valuestringRequired — unique identifier.
iconLucideIconOptional leading icon shown both in the dropdown list and on each selected chip.

Accessibility

Since the trigger renders removable chips rather than plain text, always pass aria-label on MultiSelect itself (as in every example above) — the trigger's visible content alone doesn't read as a clear field name to assistive tech. Each chip's remove button is independently focusable and labeled with the option it removes.