Officina UI
Components

ActionMenu

An overflow menu of actions behind a configurable trigger, for rows and toolbars.

ActionMenu is a domain-neutral overflow menu built on Dropdown. By default it renders a MoreHorizontal icon trigger that opens a list of items, each with a label, optional icon, shortcut, danger flag, and onClick/href. Use sections instead of items for grouped, headed menus, and pass a custom trigger to replace the default button. Reach for it whenever a set of actions should fold behind one affordance.

Example

Preview
Q3 report.pdf
import { ActionMenu } from '@officina/ui';
import { Pencil, Trash } from 'lucide-react';

<ActionMenu
  items={[
    { label: 'Edit', icon: <Pencil />, onClick: edit },
    { label: 'Delete', icon: <Trash />, danger: true, onClick: remove },
  ]}
/>;

API

PropTypeDefaultDescription
alignenumendMenu alignment relative to the trigger. Defaults to `'end'`.
iconReactNode—Icon for the default trigger button. Defaults to `MoreHorizontal`.
itemsDropdownItem[]—Flat list of actions. Use `sections` instead for grouped/headed menus.
labelstringActionsAccessible label for the default trigger.
sectionsDropdownSection[]—Grouped actions with optional section headings.
sizeenumsmSize of the default trigger button.
triggerReactNode—Replace the default overflow trigger entirely.

On this page