Overflow menu

An overflow menu groups a set of actions into a responsive horizontal list to help declutter the UI.

Examples

Simple (responsive)

Item
Item
Item
Item
Item

Group types

Item
Item
Item

Multiple groups

Persistent

Breakpoint on container

By passing in the breakpointReference property, the overflow menu's breakpoint will be relative to the width of the reference container rather than the viewport width.

You can change the container width in this example by adjusting the slider. As the container width changes, the overflow menu will change between a horizontal menu and a vertical dropdown despite the viewport width not changing.

Current container width: 100 %
Item 1
Item 2
Item 3
Item 4
Item 5

Props

OverflowMenu

*required
NameTypeDefaultDescription
breakpointrequired'sm' | 'md' | 'lg' | 'xl' | '2xl'Indicates breakpoint at which to switch between horizontal menu and vertical dropdown
breakpointReferenceHTMLElement | (() => HTMLElement) | React.RefObject<any>A container reference to base the specified breakpoint on instead of the viewport width.
childrenanyAny elements that can be rendered in the menu
classNamestringAdditional classes added to the OverflowMenu.

OverflowMenuContent

*required
NameTypeDefaultDescription
childrenanyAny elements that can be rendered in the menu
classNamestringAdditional classes added to the OverflowMenuContent
isPersistentbooleanModifies the overflow menu content visibility

OverflowMenuControl

*required
NameTypeDefaultDescription
childrenanyAny elements that can be rendered in the menu
classNamestringAdditional classes added to the OverflowMenuControl
hasAdditionalOptionsbooleanTriggers the overflow dropdown to persist at all viewport sizes

OverflowMenuDropdownItem

*required
NameTypeDefaultDescription
isSharedbooleanfalseIndicates when a dropdown item shows and hides the corresponding list item
itemIdstring | numberIdentifies the component in the dropdown onSelect callback

OverflowMenuGroup

*required
NameTypeDefaultDescription
childrenanyAny elements that can be rendered in the menu
classNamestringAdditional classes added to the OverflowMenuGroup
groupType'button' | 'icon'Indicates a button or icon group
isPersistentbooleanfalseModifies the overflow menu group visibility

OverflowMenuItem

*required
NameTypeDefaultDescription
childrenanyAny elements that can be rendered in the menu
classNamestringAdditional classes added to the OverflowMenuItem
isPersistentbooleanfalseModifies the overflow menu item visibility

CSS variables

Expand or collapse columnSelectorVariableValue