Dropdown menu
A list of actions that opens from a button.
import { DropdownMenu, MenuItem } from '@stanvision/atomus-react';
<DropdownMenu label="Project actions" trigger={<Button hierarchy="outline">Actions</Button>} items={[ { label: 'Rename', shortcut: '⌘R', onSelect: rename }, { type: 'separator' }, { label: 'Delete', destructive: true, onSelect: remove }, ]}/>A list of actions that opens from a button. MenuItem is exported for custom lists.
Provide
Section titled “Provide”trigger— the button that opens it (it getsaria-haspopup,aria-expandedand arrow-key opening).items—{ label, icon?, shortcut?, disabled?, destructive?, onSelect },{ type: 'separator' }or{ type: 'heading', label }.alignstart·end;sizesm36 ·md40;labelnames the menu.
- Put destructive actions last, after a separator.
- Don’t use it to pick a value — that’s Select.
In Figma
Section titled “In Figma”Properties, variants and anatomy for the Figma component are on the Figma reference page. Prop names in React match the Figma property names.