Dropdown Select
A compact form control that expands a collapsible list of predefined options—ideal for 5 to 15 choices when screen space is limited
Table of Contents
Interactive Playground
Tap or drag to interact with the demoWhat is Dropdown Select?
A compact form control that expands a collapsible list of predefined options—ideal for 5 to 15 choices when screen space is limited. It is a core concept in UI Components within UI / UX.
Core Principles
A Dropdown Select keeps a form compact by displaying only the current choice until clicked, then expanding a collapsible listbox of predefined options. It hits the sweet spot for 5 to 15 mutually exclusive choices.
When there are only 2–4 options, radio buttons or a segmented control eliminate the extra click; when options exceed 15–20 items, adding search via a Combobox prevents tedious scrolling.
Practical Takeaways
- Choose native
<select>vs custom thoughtfully: Prefer native<select>for simple text options—especially on mobile where OS pickers shine. Reach for a custom listbox only when you need icons, avatars, secondary descriptions, or custom styling. - Support full keyboard navigation and type-ahead: Custom selects must open on
Space/Enter/ArrowDown, skip disabled options, close onEscape, and jump to matching items as the user types. - Handle viewport collision cleanly: Flip the menu upward automatically near the bottom of the screen, cap height with scrolling, and mark the active choice with a clear checkmark (
✓).
Notable Examples
- List sort controls: Compact
Most Popular / Newest / Price: Low to Highselectors in catalog headers. - Locale & currency switchers: Header or settings dropdowns for language and billing currency.
- Team role pickers: Inline per-row selectors switching members between
Admin,Editor, andViewer.