Skip to main content

Menu Item Props with types

PropsTypeDescriptionDefault
iconReactElementIcon for the menu item-
disabledbooleanIf true, the component is disabledfalse
prefixReactNode | ChipPropsAdd a prefix to the menuItem-
suffixReactNode | ChipPropsAdd a suffix to the menuItem-
componentstring | ReactElementRouter component that will be used to handle routing<a>
targetstringThe link will open according to the target option_self
relstringSet rel for your link-
onActiveChange(active: boolean) => voidCallback function called when menu item's active state changes-
rootStylesCSSObjectSet custom styling for menu item-