StealThis .dev

Action Dropdown Menu

A three-dot floating menu with grouped action items, copy-to-clipboard, keyboard support, and snackbar feedback.

Open in Lab
css javascript
Targets: HTML

Code

Action Dropdown Menu

A floating context menu triggered by a three-dot (kebab) button. Groups related actions with dividers, handles clipboard writes, and shows a snackbar notification on completion.

Features

  • Click-outside detection closes the menu
  • Escape key support
  • Action groups separated by <hr> dividers
  • Copy-to-clipboard with snackbar feedback
  • Fully keyboard accessible (ARIA haspopup, expanded)

When to use

  • Resource or card overflow menus
  • Table row action columns
  • Any contextual action panel attached to a trigger button