Overflow Menu
Overview
Overflow Menus contain a list of actions in a menu, that is hidden until the user clicks on the overflow menu button. Used throughout Arc Publishing, the overflow menu keeps key actions close by in a clean and unobtrusive menu.
- Usage
- React
Import
Arc UI exports 2 components for an overflow menu:
OverflowMenu
: The wrapper component that providesMenuItem
: Trigger that handles selection. Must be a child ofOverflowMenu
.
import { OverflowMenu, MenuItem } from '@wpmedia/arc-ui-menu'
Usage
interfaceย MenuItemProps
Props | Description |
---|---|
destroy (optional) | undefined | false | true = false Show destructive styling for this element |
disabled (optional) | undefined | false | true = false Disables this menu item from being selected |
Copy