Mega Menu
Expanded navigation dropdown with rich multi-column content.
Generated from the package's public source.
API
Contentcomponent
Content(props: MegaMenuContentProps): Element
Props
class?stringref?(el: HTMLDivElement) => voidstyle?string | CSSProperties
children: Element
Groupcomponent
Group(props: MegaMenuGroupProps): Element
Props
class?stringstyle?string | CSSProperties
children: Element
GroupLabelcomponent
GroupLabel(props: MegaMenuGroupLabelProps): Element
Props
class?stringstyle?string | CSSProperties
children: Element
Itemcomponent
Item(props: MegaMenuItemProps): Element
Props
disabled?boolean— Disable this item.valuestring— Unique identifier for this item.
children: Element
Linkcomponent
Link(props: MegaMenuLinkProps): Element
Props
active?booleanclass?stringhrefstringstyle?string | CSSProperties
children: Element
Listcomponent
List(props: MegaMenuListProps): Element
Props
class?stringstyle?string | CSSProperties
children: Element
MegaMenuContentPropsinterface
Props
class?stringref?(el: HTMLDivElement) => voidstyle?string | CSSProperties
children: Element
MegaMenuGroupLabelPropsinterface
Props
class?stringstyle?string | CSSProperties
children: Element
MegaMenuGroupPropsinterface
Props
class?stringstyle?string | CSSProperties
children: Element
MegaMenuItemPropsinterface
Props
disabled?boolean— Disable this item.valuestring— Unique identifier for this item.
children: Element
MegaMenuLinkPropsinterface
Props
active?booleanclass?stringhrefstringstyle?string | CSSProperties
children: Element
MegaMenuListPropsinterface
Props
class?stringstyle?string | CSSProperties
children: Element
MegaMenuRootPropsinterface
Props
defaultValue?string— Default active item value (uncontrolled).delayDuration?number— Hover delay in ms before opening. Default: 200.disabled?boolean— Disable all menu interactions.onValueChange?(value: string) => void— Called when the active item changes.value?string— Controlled active item value.
children: Element
MegaMenuTriggerPropsinterface
Props
class?stringref?(el: HTMLButtonElement) => voidstyle?string | CSSProperties
children: Element
Rootcomponent
Root(props: MegaMenuRootProps): Element
Props
defaultValue?string— Default active item value (uncontrolled).delayDuration?number— Hover delay in ms before opening. Default: 200.disabled?boolean— Disable all menu interactions.onValueChange?(value: string) => void— Called when the active item changes.value?string— Controlled active item value.
children: Element
Triggercomponent
Trigger(props: MegaMenuTriggerProps): Element
Props
class?stringref?(el: HTMLButtonElement) => voidstyle?string | CSSProperties
children: Element