Select

Lets the user choose one option from a list that opens over the page.

components/ui/select.tsx

Installation

npx betterone-ds add select

Props

PropTypeDefault
aria-labelstringrequired when there is no visible label
selectedKeyKey—
isDisabledbooleanfalse

Accessibility

  • Give the select a visible label or an aria-label.
  • Use a select for many options. For two or three options, a radio group is easier to scan.