Skip to content

MenuItemProps

MenuItemProps = ListItem & object

One entry of a Menu’s items.

optional onClick?: () => void

void

optional selected?: 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.

optional size?: ItemSize

Ignored: Menu sizes every row with its own size prop.

optional tone?: MenuItemTone

Colours the label and icon for a destructive action. The row keeps the background every other row has.

'default'