MenuItemProps
MenuItemProps =
ListItem&object
One entry of a Menu’s items.
Type Declaration
Section titled “Type Declaration”onClick?
Section titled “onClick?”
optionalonClick?: () =>void
Returns
Section titled “Returns”void
selected?
Section titled “selected?”
optionalselected?:boolean
Marks the item as the current choice. When any item of a menu defines
selected, the menu renders its items as a radio group
(menuitemradio with aria-checked) and highlights the selected one.
optionalsize?:ItemSize
Ignored: Menu sizes every row with its own size prop.
optionaltone?:MenuItemTone
Colours the label and icon for a destructive action. The row keeps the background every other row has.
Default
Section titled “Default”'default'