Skip to main content
InputLevel 1

Select

下拉选择器

WebMobileDesktopDifficulty: Medium

A box that opens downward into a list of options and collapses again once you pick one.

01

Live Demo

Actually clickable
Open it: ↑↓ to move, Enter to select, Esc to close.

What you just saw:A "Select city" field in a form, the dropdown in an Excel cell, the select box in every settings screen.

02

What it actually is

A select trades space for clarity: collapsed it occupies a single row, expanded it shows every option at once. With fewer than 5 options, radio buttons are usually better — a select costs the user two clicks.

selectdropdownselect boxdropdown menuselect menucombo box
03

Anatomy · What it's made of

  1. Trigger触发框

    Shows the current value + ChevronDown

  2. Menu弹出层

    Positioned relative to the trigger

  3. Option选项

    40px tall, the selected one carries a Check

  4. Search选项内搜索

    Essential once there are many options

  5. Group选项分组

    Options grouped with dividers

04

When to Use

When it fits, and when it doesn't
Select usage recommendations
SituationUse it?
There are more than 5 options and listing them all is too longYes
The options are peers with no hierarchyYes
The list needs to be searchable (20+ options)Yes
There are fewer than 5 optionsNo
Multiple selections are neededNo

A native select on mobile raises the system picker, which behaves very differently from the web version — plan for that gap.

When picking a value changes the interface in ways the user must understand, a select gives them no context to explain it.

05

Similar Patterns

Don't mix these up
06

How to tell AI

Three levels of prompt

Add the component name and specifics

Add a city select dropdown: 30+ options, a search field at the top of the expanded menu, and the chosen option shown in the trigger with a Check mark.

07

Don't just say this to AI

Bad → Better

Don't say this to AI

Add a dropdown you can pick from.

Say this instead

Add a Select: a button[aria-haspopup=listbox] as the trigger, a menu with role=listbox and options with aria-selected, working ↑↓/Enter/Esc keyboard support, a search field when there are many options, and a menu that flips upward near the bottom of the screen.

08

Share this card

Social-ready

Turn this pattern into a 3:4 or 1:1 knowledge card and export it as PNG right in the browser. No backend needed.