ortaui

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/select

Examples#

SelectField#

Composed#

API reference#

PropTypeDefaultDescription
surface"default" | "raised"autoLook 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.
labelReactNode-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).
countnumber-SelectItem. Shown on the right until selected.
value / defaultValue / onValueChangeBase UI Select.Root-Controlled or uncontrolled state.