Did you know?dyk.si

Select (Dropdown)

A field that drops open a list of options; pick one and it closes.

Also known as: Dropdown

<select> + <option>

When to use it

For one choice from a medium list (five to fifteen options).

Common mistake

For very long lists, a searchable combobox is faster.

Accessibility

Prefer the native <select> on mobile; custom versions must support type-ahead and arrow keys.

Name in code

HTML/CSS<select> + <option>
React<Select>
Jetpack ComposeExposedDropdownMenuBox + DropdownMenuItem
SwiftUIPicker().pickerStyle(.menu)

Ready prompt for your coding agent

Add a Select (Dropdown) to this screen. What it is: A field that drops open a list of options; pick one and it closes. Implement with: <select> + <option> (HTML/CSS). Accessibility: Prefer the native <select> on mobile; custom versions must support type-ahead and arrow keys. When to use it: For one choice from a medium list (five to fifteen options). Avoid: For very long lists, a searchable combobox is faster. Reuse the project's existing design tokens, spacing and component conventions.

Or compose a whole page from this element and others →

Prompts are in English for the most precise results with coding agents.