Multiselect
Multi-option selector with removable pills in the trigger for selected values. Opens into a floating panel - matching Select and Combobox - with checkable rows. Supports overflow with a +N badge when selections exceed maxVisible.
Installation
npx stepwise-ui add multiselect
Default
With label
Controlled
Pass value (string array) and onChange for controlled usage. The component manages state internally when uncontrolled.
Overflow
When more items are selected than maxVisible (default: 2), the remaining count shows as a +N chip. Click the trigger to see all options.
Props
PropTypeDescription
optionsMultiselectOption[]Array of { value, label } objects.
valuestring[]Controlled selected values.
onChange(values: string[]) => voidCalled when selection changes.
placeholderstringText shown when nothing is selected.
labelstringLabel rendered above the trigger.
maxVisiblenumberMax pills shown before +N. Default: 2.
disabledbooleanDisables the trigger.