Skip to content
GitHub

Select

Displays a list of options to choose from.

Installation

Usage

Controlled

Use value and onValueChange to control the selected items.

Size

Control trigger size with the size prop on SelectTrigger.

Small

Medium

Large

State

Disabled

Invalid

Examples

Multiple

Enable multiple selection with the multiple prop.

Grouping

Organize options into groups using groupBy and SelectGroup.

With Field

Use <Field /> for labels, helper text, and error handling.

Used for shipping estimates

Max Selection

With Scroll

Empty

Use SelectEmpty to display a message when the collection has no items.

API Reference

Select

Root component. Wraps Ark UI Select.Root with HiddenSelect for form support.

SelectTrigger

Opens the dropdown on click. Displays the selected value or placeholder.

SelectValue

Shows the selected value or placeholder. Use SelectContext as children for custom display.

SelectContent

Holds the dropdown options. Displayed in a portal.

SelectClearTrigger

Button to clear the selected value. Shown when showClearTrigger is true on SelectTrigger.

SelectGroup

Groups related options under an optional heading.

SelectGroupLabel

Label for an option group.

SelectItem

A single selectable option in the dropdown.

SelectEmpty

Shown when the collection has no items (collection.size === 0). Place inside SelectContent.


For a complete list of props, see the Ark UI documentation.