MenuPicker renders a native button. Your application owns selected and the action. selected also controls aria-pressed.
label even with showLabel={false} because it supplies the accessible name. tooltipContent adds a supplementary explanation. disabled prevents activation. Place the button outside a form unless its default native submission behavior is appropriate.
Props
string
Class applied to the button.
boolean
default:"false"
Disables the button.
IconComponent
required
Leading icon component.
string
required
Button ID.
string
Button label and accessible name, including when showLabel is false.
(() => void)
Activation callback.
boolean
default:"false"
Controls selected styling and aria-pressed.
boolean
default:"true"
Shows the visible label beside the icon.
string
Value of the button’s data-testid attribute.
string
Optional tooltip text.
number
default:"0"
Hover delay in milliseconds.
number
default:"5"
Distance between the button and tooltip in pixels.