Skip to content

DropdownMenu

Group related actions in a keyboard-accessible menu.

alpina-ui/interactive/dropdown-menu

Interactive preview

Atelier Selva
Bellinzona · TI

Edit contact

Delete this contact?

Atelier Selva

Usage notes

Keep item labels actionable. Use shortcut to show a keyboard binding that the application already implements. The popup follows the visible viewport when zoom or scrolling changes it.

When to use

Collect secondary commands that act on the same selected record.

When to avoid

Use a Select to choose a stored value. Keep a frequent primary action visible outside the menu.

Accessibility

Give the trigger a purpose, support arrow-key movement and restore focus on dismiss. Identify destructive commands with words.

Keys
KeyAction
↓ / ↑Open the menu at its first or last item, then move between items.
Home / EndFocus the first or last item.
TypeFind an item by the beginning of its label.
Enter / SpaceActivate the focused enabled item.
EscapeDismiss and return focus to the menu button.
Tab / Shift+TabDismiss and continue in document order.

Content

Use parallel verb phrases, typically one action and one object. Give repeated menus names that include the target record.

Use
Actions for invoice 104 / Download invoice
Avoid
More / Item 1

Copy in four languages

German
Rechnung herunterladen22 characters
French
Télécharger la facture22 characters
Italian
Scarica fattura15 characters
Romansh
Telechargiar il quint21 characters
Add to your project
npx --no-install alpina add dropdown-menu