Inputs
Select / combobox
Also calledselectcomboboxcombo boxdropdown fieldchoice pickersearchable dropdownsearchable selectdropdown with searchautocompletetypeahead
A field for choosing an option. A select offers fixed choices; an editable combobox (autocomplete or searchable dropdown) also lets users type to find options and may allow a custom value.
How people describe it
- “field with a down arrow that opens choices”
- “box where I pick one item from a list”
- “type in a field to narrow the available choices”
- “text field that shows suggestions while I type”
Good for
- Choosing a country or category
- Searching a long list of options
- Autocomplete suggestions while typing in a field
Don’t mix it up with
Runs commands such as Rename; a select or combobox sets a field value.
What your library calls it
| LIBRARY | CALLS IT |
|---|---|
| shadcn/ui | Select (fixed choices) / Combobox (separate, searchable) |
Accessibility checklist
- Associate a visible label and retain keyboard operation
- Use native select for simple fixed choices
- For custom comboboxes, expose expanded state and active option; support Escape and Enter
Try it
Native is simplest. Custom lets you style the list, so it needs more keyboard code.
Settings
Colors
Pick, eyedrop, or generate a color, then choose Custom under Color above.
Passes AA · 6.9:1
Text color is chosen for you.
Start
End
Prompt
Add a labeled select with keyboard-operable options and a visible selected value.
~21 estimated prompt tokensDetailed: ~71 estimated prompt tokens
Rough estimate for prompt text only; actual counts vary by model and context.
<!-- Fixed-choice select. An editable combobox needs additional keyboard and focus behavior. -->
<label for="category">Category</label>
<select id="category" name="category" style="min-height:44px; width:100%; box-sizing:border-box">
<option value="guides">Guides</option>
<option value="examples">Examples</option>
<option value="news">News</option>
</select>Used in
Explore website blueprints that use this component.