Component

Select

A typed select component for single choice, multi-select, filtering, clearable controls, and selection previews.

Examples

Live previews paired with copyable source.

Single Select

A compact dropdown for choosing one option.

tsx
<Select
  options={options}
  placeholder="Choose a framework"
  onChange={(value) => console.log(value)}
/>

Searchable Multi Select

Filter options and display selected values as tabs.

tsx
<Select
  options={options}
  multiple
  searchable
  preview="tabs"
  placeholder="Search frameworks"
/>

Preview Modes

Use the preview prop to change how multiple selections are summarized.

tsx
<Select options={options} multiple preview="text" placeholder="Text preview" />
<Select options={options} multiple preview="badge" placeholder="Badge preview" />
<Select options={options} multiple preview="numbers" placeholder="Numbers preview" />
<Select options={options} multiple clearable placeholder="Clearable" />

API Reference

Props available on the component.

PropTypeDefaultDescription
optionsOption[]requiredArray of options with value and label fields.
onChange(value: string | string[]) => voidundefinedCalled when the selected value changes.
placeholderstring'Select...'Text shown when nothing is selected.
multiplebooleanfalseAllows more than one option to be selected.
searchablebooleanfalseAdds an input for filtering the option list.
preview'tabs' | 'text' | 'badge' | 'numbers''text'Controls how selected values are displayed.
clearablebooleanfalseShows a control for clearing the current selection.
disabledbooleanfalsePrevents the select from opening or changing.