Skip to content

MultiSelect

Pick several items from a popup panel of checkboxes. Real checkbox inputs carry the form name, so selections submit natively. The trigger shows one label, a count, or the placeholder.

Example

<MultiSelect
  id="toppings"
  label="Toppings"
  name="toppings"
  options={["Pepperoni", "Mushrooms", "Olives"]}
/>

Props

PropTypeDefaultDescription
idstring-Names Field/panel/message ids (trigger itself carries no id).
labelstring-Visible label; also names the trigger and panel.
namestringidCheckbox form name; submits every checked value.
optionsArray<string | { value; label; disabled? }>-Selectable items.
valuesstring[][]Preselected option values.
placeholderstring"Select …"Empty-state trigger text; defaults to the lowercased label.
classstring-Style passthrough.
Plus the Field API (hint, error, required, disabled).

Accessibility