System design
Dropdown Menu
Premium
Question
Design a dropdown menu component that can reveal a menu containing a list of actions.
Real-life examples
These component libraries demonstrate common dropdown-menu APIs and interaction patterns.
Changelog
Focus behavior on dismissal
Escape returns focus to the trigger. Tab follows the page's normal focus order, and an outside click keeps its focus destination.
aria-expandedtracks whether the menu is open.Menu keyboard and focus diagrams
The new keyboard diagrams show how focus moves into the menu, between items, and back to the surrounding page.