Select, SearchableDropdown

Frond
One of many. Searchable above ~8 options.
Python SDK

Usage

The import, then a use to start from. Both copy as they are.

Import
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select";
Example
<Select value={language} onValueChange={setLanguage}>    <SelectTrigger className="w-44" aria-label="SDK language">        <SelectValue placeholder="Pick a language" />    </SelectTrigger>    <SelectContent>        <SelectItem value="python">Python SDK</SelectItem>        <SelectItem value="typescript">TypeScript SDK</SelectItem>        <SelectItem value="go">Go SDK</SelectItem>    </SelectContent></Select>

When to use

Use it for

  • Select for one choice from a short list you know up front.
  • SearchableDropdown past about 8 options, or when the list loads from the server: it searches, groups with getItemGroup, and has loading and empty states.
  • The trigger shows the current value; the placeholder says what to pick.

Avoid

  • 2 to 5 options that should all stay in view: use a RadioGroup or a SegmentedControl.
  • A list of actions. That's a DropdownMenu.

Accessibility

Checks

  • Both work from the keyboard: the arrow keys move, Enter picks, Escape closes.
  • The trigger has a name: a visible Label, or an aria-label in a toolbar.

API

Read from each component's stories, the same source as COMPONENTS.md, and kept in step by check:design-system.

Select

Its stories don't declare argTypes, so no props are listed. The variants show its states.
Also exportsSelectContentSelectGroupSelectItemSelectLabelSelectScrollDownButtonSelectScrollUpButtonSelectSeparatorSelectTriggerSelectValue
VariantsDefaultWithGroupsWithDescriptionsSmallWithDisabledItems

SearchableDropdown

Its stories don't declare argTypes, so no props are listed. The variants show its states.
VariantsDefaultWithSectionsWithHeaderContentAlignEndEmpty

Keep going