Skip to content
Design System
GitHub

Select

v0.17.4

Pick one from a longer list.

Select default

Install
npx shadcn add @syncrobotic/select

Also installs: radix-ui, lucide-react, @syncrobotic/cn, @syncrobotic/field

Overview

A button that opens a list to pick one option from.

When to use

  • Six or more options, or options with long names.
  • A compact choice in a table row or a toolbar.

Use something else

More examples

States and real uses. Each example is also a Storybook story and a visual regression test.

Only robots on this site are listed

Select grouped

Locked while a patrol is running

Choose a dock before starting

Select states

Select disabled option

Usage rules

  • Choose one of a known list of five or more. Two to four short options read faster as a SegmentedControl or radios.
  • Always with a label; a placeholder says what to pick, never which value is the default.
  • For a long list people search, use Autocomplete.

Changelog

  • 0.17.42026-11-19Opened with a click, the list shows no keyboard ring until a key moves in it (the selected option was ringed on every mouse open).
  • 0.17.32026-11-19Disabled: the field keeps its grey fill with a --border edge, so in dark mode it no longer looks enabled; its words use the new --disabled (3:1 on every surface).
  • 0.17.22026-11-19With the keyboard, the highlighted option shows a 2 px inset ring as well as the fill; with a mouse it stays a plain fill.

How to upgrade