Menu
beta

A menu displays a list of actions on an elevated surface. It is triggered by a control.

Menu group
Menu item
Source code

Component props

NameDefault valueTypeIs required?Description
triggerAction
click"hover" | "click"NoUser action that toggles menu visibility
trigger
ReactElement<any, string | JSXElementConstructor<any>>YesElement that anchors the menu
items
(MenuItemType | GroupItemType)[]YesMenu items
className
stringNoCSS class
testId
stringNoID for automated testing