A dropdown is a panel that hangs off a trigger, does one job and closes: a menu of actions, a list of values to pick from, or the account panel behind an avatar. The seven in this family cover that whole range, from a labelled form field that opens its list in place to a scrolling sheet of grouped actions.
Worth separating before you build one: a menu fires actions, a listbox holds values, and the two behave differently even though they look alike. A menu closes on the first click, because the click was the point. A multi-select panel must not, closing after every tick turns setting a handful of filters into a handful of round trips. Keyboard handling splits the same way, and so does what a screen reader announces. The other thing people miss is what should happen when a required field is opened and dismissed with nothing chosen: say so on the spot, rather than letting the submit be the first news of it.
The avatar in the corner opens what is not navigation: profile and settings, support, the current plan with its upgrade path, and the sign-out that sits apart from everything above it.
A short list of actions that each own a chord, opened from a search field. The chord printed on the row is how people graduate from clicking it to never opening the menu again.
Choosing among things that need explaining: a mark, a name, a badge and a line of description per row, with a checkbox on each when more than one can be on at a time.
A labelled field that opens its list underneath itself instead of floating over the form, keeping the header, the hint and the error footer where the reader is already looking.
A menu of actions closes on the click, because the action was the point and leaving it open hides the result. A panel where several options can be on at once stays open, and closes on an outside click, on Escape, or on an explicit done control. A single-value picker closes on choice and puts focus back on its trigger.
The trigger opens on Enter, Space or Down, and reports whether it is expanded. Arrow keys move the active row without scrolling the page, Home and End jump to the ends, and typing letters jumps to a matching row. Enter takes the active row, Escape closes and returns focus to the trigger, and Tab should not leave a half-open panel behind.
Join the Orvain Dispatch and get production-ready components, free to keep: React and Vue code plus the Figma frame, yours to ship.
A dropdown is a panel that hangs off a trigger, does one job and closes: a menu of actions, a list of values to pick from, or the account panel behind an avatar. The seven in this family cover that whole range, from a labelled form field that opens its list in place to a scrolling sheet of grouped actions.
Worth separating before you build one: a menu fires actions, a listbox holds values, and the two behave differently even though they look alike. A menu closes on the first click, because the click was the point. A multi-select panel must not, closing after every tick turns setting a handful of filters into a handful of round trips. Keyboard handling splits the same way, and so does what a screen reader announces. The other thing people miss is what should happen when a required field is opened and dismissed with nothing chosen: say so on the spot, rather than letting the submit be the first news of it.
The avatar in the corner opens what is not navigation: profile and settings, support, the current plan with its upgrade path, and the sign-out that sits apart from everything above it.
A short list of actions that each own a chord, opened from a search field. The chord printed on the row is how people graduate from clicking it to never opening the menu again.
Choosing among things that need explaining: a mark, a name, a badge and a line of description per row, with a checkbox on each when more than one can be on at a time.
A labelled field that opens its list underneath itself instead of floating over the form, keeping the header, the hint and the error footer where the reader is already looking.
A menu of actions closes on the click, because the action was the point and leaving it open hides the result. A panel where several options can be on at once stays open, and closes on an outside click, on Escape, or on an explicit done control. A single-value picker closes on choice and puts focus back on its trigger.
The trigger opens on Enter, Space or Down, and reports whether it is expanded. Arrow keys move the active row without scrolling the page, Home and End jump to the ends, and typing letters jumps to a matching row. Enter takes the active row, Escape closes and returns focus to the trigger, and Tab should not leave a half-open panel behind.
Join the Orvain Dispatch and get production-ready components, free to keep: React and Vue code plus the Figma frame, yours to ship.
Runs when you press the row’s letter with
What the shortcut on this row runs when you press it.
Suggested
Actions
Runs when you press the row’s letter with
What the shortcut on this row runs when you press it.
Suggested
Actions