Menu button
A button with more than one action.
Props
text
string | undefined
The button label text. When provided, displays as a text button with a dropdown icon.
type
primary | secondary | tertiary
The button style variant.
Defaults to
primary.
testId
string
Sets a data-testid attribute for automated testing.
leadingIcon
GoAIconType
Icon displayed before the button text. When no text is provided, displays as an icon button.
leadingIconTheme
IconTheme
Theme for the leading icon.
Defaults to
outline.
maxWidth
string
Maximum width of the dropdown menu.
size
MenuActionSize
Size of the button and menu items.
Defaults to
normal.
Events
onAction
(event: Event) => void
_action
CustomEvent