Hextech UI

Select

Live example

Select

Installation

Terminal
npx shadcn@latest add https://hextech-ui.vercel.app/r/select.json

API reference

These are the main Select options. See the exported TypeScript types for inherited native or primitive props.

PropTypeDefault
value / defaultValueValue | Value[]—
multiplebooleanfalse
valueValue (SelectItem)—

Selection and forms

Use value with onValueChange for controlled selection, or defaultValue for uncontrolled selection. Give SelectTrigger an accessible name and set name on Select for form submission. SelectContent propagates the current theme into its portal.