Skip to main content

SubMenu Props with types

PropsTypeDescriptionDefault
labelReactNodeTitle for the submenu-
iconReactElementIcon for submenu-
defaultOpenbooleanSet if the submenu is open by defaultfalse
disabledbooleanIf true, the component is disabledfalse
prefixReactNode | ChipPropsAdd a prefix to the submenu-
suffixReactNode | ChipPropsAdd a suffix to the submenu-
componentstring | ReactElementComponent to render the submenu with<a>
contentClassNamestringCustom class for submenu's content area-
onOpenChange(open: boolean) => voidCallback function called when submenu state changes-
rootStylesCSSObjectSet custom styling for submenu-