Components · Navigation · Dropdown
Back to Dropdown typesDropdown
A trigger button that reveals a list of actions or commands when clicked, like "More actions" or "Sort by" - distinct from Select, which picks a form value, and from the menu panel it opens.
Properties
Size, corner radius and label are properties of the same component, not separate buttons - change them below to check this trigger's style and states in the Live Preview.
Live Preview
Both types compared side by side, each in all 7 states. One full matrix is rendered per selected combination of Size and Corner radius - check more than one option in a dropdown to see every combination side by side.
Interactive Example
A real, working Dropdown - not just an illustration of what each state looks like. Click the trigger (or focus it and press Enter, Space or ArrowDown), use arrow keys to move through the menu, Enter or Space to choose an item, and Escape or a click outside to close. Follows the Size, Corner radius and Label controls above.
When to use
Any button that opens a list of clickable commands or actions - never for picking a form value, which is what Select is for.
Component Guide
Overview
Dropdown is a trigger button that reveals a list of actions or commands when clicked, like "More actions" or "Sort by" - distinct from Select, which picks a form value, and from the Menu panel it opens, which is a separate component in its own right.
When to Use
- A row-level actions menu - opening a list of commands for a single table row.
- A bulk-actions or sort-by trigger - acting on multiple selected items, or choosing a sort order from a command list.
- A catch-all "more options" trigger - when several secondary actions don't fit as individual buttons.
When Not to Use
- Picking a value that gets stored or submitted as form data - use Select - Dropdown triggers actions, it doesn't hold a form value.
- A single, common action that deserves its own visible button - don't bury a frequently-used action inside a Dropdown just to reduce button count.
- Persistent, always-visible navigation - use a nav bar, sidebar, or Tabs instead of hiding primary navigation behind a click.
Best Practices
- Order menu items by frequency of use or logical grouping, with destructive actions visually separated at the bottom.
- Keep the trigger's label descriptive ("Sort by", not just an icon) unless the icon convention is already well established.
- Close the menu on selection, on outside click, and on Escape - never leave it open after an action fires.
Do and Don't
Do
The trigger states the current selection, so the control still reads correctly closed, without needing to be opened first.
Don't
A generic "Options" label never reflects what has actually been chosen, so the user has to reopen the menu just to check the current state.
Accessibility
- The trigger exposes aria-haspopup and aria-expanded, reflecting whether the menu is currently open.
- The opened menu is fully keyboard-navigable (arrow keys, Enter to activate, Escape to close) without requiring a mouse.
- Focus returns to the trigger when the menu closes, so keyboard users don't lose their place.
Related Components
Menu (the panel it opens), Select, Button.
{
"component": "Dropdown",
"category": "Navigation",
"summary": "Dropdown is a trigger button that reveals a list of actions or commands when clicked, like \"More actions\" or \"Sort by\" - distinct from Select, which picks a form value, and from the Menu panel it opens, which is a separate component in its own right.",
"whenToUse": [
"A row-level actions menu - opening a list of commands for a single table row.",
"A bulk-actions or sort-by trigger - acting on multiple selected items, or choosing a sort order from a command list.",
"A catch-all \"more options\" trigger - when several secondary actions don't fit as individual buttons."
],
"whenNotToUse": [
"Picking a value that gets stored or submitted as form data - use Select - Dropdown triggers actions, it doesn't hold a form value.",
"A single, common action that deserves its own visible button - don't bury a frequently-used action inside a Dropdown just to reduce button count.",
"Persistent, always-visible navigation - use a nav bar, sidebar, or Tabs instead of hiding primary navigation behind a click."
],
"bestPractices": [
"Order menu items by frequency of use or logical grouping, with destructive actions visually separated at the bottom.",
"Keep the trigger's label descriptive (\"Sort by\", not just an icon) unless the icon convention is already well established.",
"Close the menu on selection, on outside click, and on Escape - never leave it open after an action fires."
],
"doAndDont": {
"do": "The trigger states the current selection, so the control still reads correctly closed, without needing to be opened first.",
"dont": "A generic \"Options\" label never reflects what has actually been chosen, so the user has to reopen the menu just to check the current state."
},
"accessibility": [
"The trigger exposes aria-haspopup and aria-expanded, reflecting whether the menu is currently open.",
"The opened menu is fully keyboard-navigable (arrow keys, Enter to activate, Escape to close) without requiring a mouse.",
"Focus returns to the trigger when the menu closes, so keyboard users don't lose their place."
],
"relatedComponents": [
"Menu",
"Select",
"Button"
]
}