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
prefixReactNodeAdd a prefix to the submenu-
suffixReactNodeAdd 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-