API and Development
Select displays a dropdown menu of predefined options, allowing users to choose one value from a list. It supports both flat and grouped options, with optional placeholder text and disabled states. It provides a standard dropdown selection interface where users choose from predefined options. Built on Radix UI's Select component, it ensures consistent selection patterns across the interface with full keyboard and screen reader accessibility. Ideal for forms, filters, and configuration where users select from known options without needing to search.
Name | Type | Default | Description |
|---|---|---|---|
|
| — | Unique identifier linking the trigger to its label. |
|
| — | Flat or grouped list of options. Use |
|
| — | Text label for the select. Used as visible label or |
|
| — | When true, applies an active/pressed visual state. |
|
|
| HTML element tag to render. |
|
| — | Additional CSS class name(s) applied to the element. |
|
|
| When true, hides the visible label and uses it as an |
|
| — | URL for anchor-based interactables. Changes the rendered element to an |
|
| — | Choose to inject interactivity into a child element such as a Div element |
|
|
| Visual style variant for the interactive element. |
|
| — | Placeholder text shown when no value is selected. |
|
| — | Relationship for anchor-based interactables (for example |
|
| — | ARIA role attribute for the interactive element. |
|
| — | Overrides the default tab order for non-disabled elements. Pass |
|
| — | Target for anchor-based interactables (for example |
|
| — | Native HTML title attribute for browser tooltip fallback |
|
| — | Optional tooltip text to display on hover (uses Radix Tooltip) |
|
| — | Position of the tooltip relative to the element, defaults to "top" |
|
| — |
|
Interactive examples and edge cases for this component are in Storybook.
Use for simple selection from a list of options.
Control selection state programmatically.
Display placeholder text when no option is selected.
Organize options into groups for better organization.
Combine grouped and ungrouped options.
Disable specific options or the entire select.
Hide the visible label while maintaining accessibility.
Automatically focus the select when it mounts.
Mark the select as required in forms.
Choose the appropriate component based on your use case and requirements.
Use Select when:
Combobox)Example use cases:
Use Combobox when:
Example use cases:
Use InputWithSelect when:
Example use cases:
Use Input when:
Example use cases:
Select - Simple dropdown for known options:
Combobox - Searchable dropdown for large lists:
Select - Standalone dropdown selection:
InputWithSelect - Combined input and selector:
On this page