Getting Started
Foundations
Components
Search for a command to run...
Select provides a space-efficient way to present multiple options without cluttering the interface. When closed, it displays only the selected value; when opened, it reveals a dropdown list of all available options. Selects are ideal for forms and settings where users need to choose from a predefined set of options.
Built on top of Radix UI's Select primitive with full keyboard navigation, type-ahead search, focus management, and accessibility support including proper ARIA attributes.
import { Select } from "@strongtie/design-system/select"This module exports the following components:
SelectSelectContentSelectGroupSelectItemSelectLabelSelectScrollDownButtonSelectScrollUpButtonSelectSeparatorSelectTriggerSelectValue<Select>This component accepts the following custom props. For additional props inherited from Radix UI primitives see the Radix UI documentation.
| Prop | Type | Default | Description |
|---|---|---|---|
defaultValue | string | - | |
onValueChange | ((value: string) => void) | - | |
value | string | - |
Selected value: apple
Components can be styled using the className prop. The design system uses Tailwind CSS for styling.
The following data attributes are used to identify component parts:
selectselect-contentselect-groupselect-itemselect-labelselect-scroll-down-buttonselect-scroll-up-buttonselect-separatorselect-triggerselect-valueOther CSS classes used by this component:
menu-itemmenu-item-indicatormenu-item-labelmenu-item-separatorpopperselect-contentselect-content-popperselect-iconselect-scroll-buttonselect-triggerselect-viewportselect-viewport-popperThis component inherits accessibility features from Radix UI, including: