- Components
- Forms
Select
Pill trigger, 160ms menu that grows from the trigger, one highlight that slides with hover and keyboard, and a check on the selected item.
Installation#
npx shadcn add @ortaui/selectExamples#
SelectField#
Composed#
API reference#
| Prop | Type | Default | Description |
|---|---|---|---|
| surface | "default" | "raised" | auto | Look on a panel. Unset: raised (page fill + border) inside any [data-surface] container. "raised" forces it anywhere; "default" keeps the muted fill even inside a surface. |
| options | { value: string | null; label: string; count?: number }[] | - | SelectField only. null is a real value, use it for Any. |
| label | ReactNode | - | SelectField only. Muted label in the trigger. |
| orientation | "horizontal" | "vertical" | "horizontal" | SelectField only. Inline prefix (horizontal) or stacked above the value like Field's inset label (vertical). |
| count | number | - | SelectItem. Shown on the right until selected. |
| value / defaultValue / onValueChange | Base UI Select.Root | - | Controlled or uncontrolled state. |