Skip to content

Select

Pick one value from a list. Keyboard and screen-reader ready.

Team
Role

You can change it later.

SelectLive · light and dark follow the theme switch

Add the source to a shadcn project

npx shadcn@latest add https://docs.atomus.io/r/select.jsonOpen in v0

Installs the component source, its CSS and the Atomus tokens into components/atomus/. How the registry works

From guidelines/components/input-select.md · Open in Figma: Select

Properties, variants and anatomy of the Figma components. React props use the same names.

Select trigger; pair with Dropdown menu for the open list.

Variants: 15

Property Type / options
Label text
Show label boolean (on)
Show hint boolean (on)
Size sm · md · lg
State Default · Focused · Filled · Disabled · Error

Select with several values as tags; open state shows a searchable checkbox list.

Variants: 6

Property Type / options
Show label boolean (on)
Show hint boolean (on)
Size sm · md · lg
State Closed · Open
import { Select } from '@stanvision/atomus-react';
const [team, setTeam] = useState('design');
<Select
label="Team"
value={team}
onChange={setTeam}
options={[
{ value: 'design', label: 'Design' },
{ value: 'product', label: 'Product' },
]}
/>

Pick one value from a list of 5–15 options. Uses the Input heights (sm 32 · md 40 · lg 48) and the Menu item rows for the list.

Full types and defaults are in React API at the end of the page.

  • options — [{ value, label, icon?, disabled? }]; value + onChange or defaultValue.
  • label (always), placeholder, hint, error, size, disabled, name for forms.
  • Keyboard: ↑ ↓ Home End to move, Enter to pick, Esc to close, letters jump to a match.

Don’t

  • Don’t use for more than ~15 options — add search (Combobox, coming next).

From the Figma guidelines.

Do

  • Use for one choice from six or more options, or when space is tight.
  • Write a placeholder that says what to pick (“Select a country”).

Forbidden

  • Never use Select for two to four options — use Radio or a segmented Tabs.
  • Never put actions in the option list — use Dropdown menu.

Do

  • Show the selected values as tags in the field.
  • Add search when there are more than about ten options.

Forbidden

  • Never use Multi-select when only one value is allowed — use Select.

Generated from react/src/components by scripts/gen-react-api.mjs — the same tables agents read in guidelines/components/input-select.md.

Use only these props; anything else is not part of the API.

Figma: Select (trigger) + Dropdown menu (list). A WAI-ARIA select-only combobox.

import { Select } from '@stanvision/atomus-react'; — source: react/src/components/Select.tsx

Prop Type Default Description
options SelectOption[] required The options.
value string — Controlled value.
defaultValue string — Initial value when uncontrolled.
onChange (value: string) => void — Called with the new value.
label string — Figma: Label (+ Show label)
hint string — Figma: Show hint
error string — Figma: State=Error
placeholder string 'Select an option' Placeholder text — never a replacement for the label.
size 'sm' | 'md' | 'lg' 'md' Figma: Size — sm 32 · md 40 · lg 48
disabled boolean — Disables the control.
name string — Form field name; a hidden input carries the value
id string — Element id; generated when omitted (wires label and hint).
defaultOpen boolean — Start open (docs and tests)
className string — Extra class on the root element (layout only — never restyle colours or sizes).

Accepts only the props above.

SelectOption:

Field Type Description
value string
label string
icon? ReactNode
disabled? boolean