Documentation

Select (dropdown picker)

An opinionated selection control that combines a button with a floating list of choices. Use Select when one value must be chosen from a short, predefined set.

Basic usage

The trigger uses the secondary button style: a neutral surface, subtle border, and strong text. Open it to choose an option; the current selection is marked with a check.

const options = [
  { value: "daily", label: "Daily" },
  { value: "weekly", label: "Weekly" },
  { value: "monthly", label: "Monthly" },
] as const;

const [frequency, setFrequency] = useState("weekly");

<Select
  label="Report frequency"
  options={options}
  value={frequency}
  onValueChange={setFrequency}
/>;

Props

PropTypeRequiredDescription
labelstringYesAccessible name for the control and option list
optionsSelectOption<Value>[]YesAvailable { value, label } choices
valuestring | numberYesCurrently selected value
onValueChange(value) => voidYesCalled after an option is chosen
disabledbooleanNoDisables the trigger
jssJSSNoStyles the control wrapper
jssButtonJSSNoStyles the trigger button

Disabled

Accessibility

  • The trigger exposes its expanded state and identifies the popup as a listbox.
  • Options use role="option" and expose the current selection.
  • Arrow keys move through options, Escape closes the Popover, and focus returns to the trigger.