Menu beta
beta
A menu displays a list of actions on an elevated surface. It is triggered by a control.
Component props
Name | Default value | Type | Is required? | Description |
---|---|---|---|---|
triggerAction | click | "hover" | "click" | No | User action that toggles menu visibility |
trigger | ReactElement<any, string | JSXElementConstructor<any>> | Yes | Element that anchors the menu | |
items | (MenuItemType | GroupItemType)[] | Yes | Menu items | |
className | string | No | CSS class | |
testId | string | No | ID for automated testing |