Select

Markdown

A dropdown for picking one option, with full keyboard support.

Good to know

  • The empty value a form’s hidden native select reports is ignored, so a choice never resets to the placeholder.

Used in Recoverable chat, Research answers, Workspace integrations and 4 more patterns.

Use it for
One choice from a known list of up to a few dozen items.
Not for
Long or searchable lists, or several choices. Try Combobox or RadioGroup.

Select preview

Installation

npm install @stackunseen/ui
import { Select } from '@stackunseen/ui';
Styles: @stackunseen/ui/styles.css

Usage and props

Use for one choice from a list. Give the trigger a visible label or aria-label, and replace options when choices change. Use an empty value to show the placeholder. Give it a label, and mark choices that aren’t available as disabled.

valuestring
The selected option value, or an empty string.
onValueChange(value: string) => void
Update value with the selected option.
optionsreadonly SelectOption[]
Options need unique, non-empty values and labels. Set disabled on unavailable ones.
disabledboolean (optional)
Prevents opening or changing the selection.
dir'ltr' | 'rtl' (optional)
Sets the control direction. Check the surrounding layout when using right-to-left text.
How state and callbacks work
All props

Loading…

For your coding agent

Give the agent this page instead of a screenshot. The prompt wraps the page with the install and import lines and the rule that your server, not a click, completes an action.

Contract
value · onValueChange · options · disabled?
Keeps honest
Give it a label, and mark choices that aren’t available as disabled.
MCP
read_component "Select" on the docs endpoint
Open the Markdown file

Keyboard and customization

Keyboard

Enter, Space or arrow keys open the list. Arrows move through options; typing jumps to a matching label. Enter or Space selects, and Escape closes and restores focus.

Customization

Change shared colors, spacing, corners and icons with the theme. Use the component's supported props to adapt its content and layout. Customization guide and Theme Studio