Skip to content
OverlayBrowse overlay components
ComponentsOverlayStable

Dropdown

Action menu with labels, separators, items, shortcuts, and pop animation.

Live preview

AccountDanger

Usage

Adapters:React stableVue stable
index.html
<div class="lm-dropdown">
  <button aria-haspopup="menu" aria-expanded="true">Actions</button>
  <div class="lm-dropdown-menu" role="menu">…</div>
</div>

CSS classes (6)

ClassDescription
lm-dropdownPosition-relative anchor
lm-dropdown-menuFloating menu
lm-dropdown-itemEach menu item
lm-dropdown-labelSection header
lm-dropdown-separator1px divider
lm-dropdown-shortcutRight-aligned key hint

React props (2)

PropTypeDefaultDescription
sidetop | right | bottom | left
alignstart | center | end

Accessibility

  • role='menu' + role='menuitem'.
  • Trigger: aria-haspopup='menu' + aria-expanded.
  • Arrow keys navigate; Escape closes.

Spotted something wrong? Edit this entry on GitHub.