Clinia UI

Select

Picks one option from a list too long to show as radio buttons.

shadcn docs →

When to use

  • Pick one option from about five to fifteen known options.

When not to use

  • Two to four options: use Radio Group, so every option is visible.
  • A long list, or one users search by typing: use Combobox.
  • Mobile-first forms: use Native Select.

Install

npx shadcn@latest add @clinia/select

Anatomy

  1. 1Triggerdata-slot="select-trigger"border-input · rounded-lg
  2. 2Value or placeholderdata-slot="select-value"text-sm · text-muted-foreground
  3. 3Icon[data-slot=select-trigger] > svgsize-4 · text-muted-foreground

Clinia rules

  • The highlighted option is bg-foreground/4, the ink tint every hover and keyboard highlight uses, with text-foreground.
  • The trigger shares the Input boundary and focus ring, so a form mixing inputs and selects reads as one.
  • The placeholder names the choice (Pick a region), not the control (Select…).

Do and don't

Do show two to four options as radio buttons, all visible at once.
Don't hide two options inside a select.

States

placeholder
selected
focus
invalid
disabled
size sm
open · highlighted, selected and disabled options

Focus cells apply the component's focus-visible classes statically. Toggle the site theme to review both themes.

Accessibility

Built in

  • The trigger's focus-visible ring is the solid Trust ring (border-ring ring-3 ring-ring/30); aria-invalid swaps it to a destructive ring.

Your responsibility

  • Label the trigger: a visible Label, or an aria-label when the context already names it.
  • Mark options users can't pick as disabled, and say why in the option text.

How to test

  1. Press Tab to reach the trigger, then Enter, Space or Arrow Down: the list opens on the selected option.
  2. Arrow keys move through options, a letter jumps to the first match, Enter picks, and Escape closes and returns focus to the trigger.
  3. With a screen reader, the trigger announces its label and current value.

API

SelectTrigger

PropValuesDefaultDescription
size
smdefault
default

sm (32px) for toolbars and table filters.

All other props come from Base UI Select.