A dropdown select component for choosing from a list of options. Built on Base UI Select primitives.
import {
SelectRoot,
SelectTrigger,
SelectValue,
SelectPortal,
SelectPositioner,
SelectPopup,
SelectList,
SelectItem,
} from "@/components/ui/static/select"<SelectRoot>
<SelectTrigger>
<SelectValue placeholder="Select option" />
</SelectTrigger>
<SelectPortal>
<SelectPositioner>
<SelectPopup>
<SelectList>
<SelectItem value="option1">Option 1</SelectItem>
<SelectItem value="option2">Option 2</SelectItem>
</SelectList>
</SelectPopup>
</SelectPositioner>
</SelectPortal>
</SelectRoot>valuestringControlled value of the select.
onValueChange(value: string) => voidCallback when value changes.
defaultValuestringDefault value for uncontrolled usage.
disabledbooleanWhether the select is disabled.