Logo of UI Challenges
Sign in

Gallery

See what others have created

Dropdown Menu
B

bereftincline

@bereftincline

MediumSaaS

Dropdown Menu

Design a dropdown menu component for selecting one value from a short list. Treat it as a compact control, not a navigation pattern. The closed state should show the current value, a clear label, and an affordance that indicates it expands.

When opened, the menu should present a vertically stacked list with enough spacing for pointer and keyboard use. Include hover, focus, selected, and disabled states. If one option is destructive or risky, style it differently so it reads before the user commits.

Define how the component behaves with mouse, touch, and keyboard. Users should be able to open it, move through options with arrows, select with Enter or click, and dismiss with Escape or by clicking outside. Keep the selected value visible after close.

Account for placement near the bottom of the viewport, long option labels, and menus that need to open upward. The component should feel stable in dense UIs and make the active choice obvious at every step.

What to deliver

  • Design the closed trigger with label, value, and affordance.
  • Design the open menu with a clear option list and hover/focus states.
  • Design selected, disabled, and destructive option styles.
  • Design keyboard behavior for open, navigate, select, and dismiss.
  • Design placement rules for short and long menus near viewport edges.

Incorporate subtle animations when the dropdown activates or deactivates to make the interaction more dynamic and engaging. However, ensure they're fast so as not to hinder usability.