Navigation Menu
A collection of links and menus for website navigation.
Anatomy
Import the primitives and assemble the parts:
@using Blazix.Primitives
<NavigationMenuRoot>
<NavigationMenuList>
<NavigationMenuItem>
<NavigationMenuTrigger>
<NavigationMenuIcon />
</NavigationMenuTrigger>
<NavigationMenuContent>
<NavigationMenuLink />
</NavigationMenuContent>
</NavigationMenuItem>
</NavigationMenuList>
<NavigationMenuPortal>
<NavigationMenuBackdrop />
<NavigationMenuPositioner>
<NavigationMenuPopup>
<NavigationMenuArrow />
<NavigationMenuViewport />
</NavigationMenuPopup>
</NavigationMenuPositioner>
</NavigationMenuPortal>
</NavigationMenuRoot>API Reference
NavigationMenuRoot
Doesn't render its own HTML element.
NavigationMenuTrigger
Renders a <button> element.
Other attributes are passed to the element it renders.
NavigationMenuIcon
Renders a <span> element.
Other attributes are passed to the element it renders.
NavigationMenuList
Renders a <ul> element.
Other attributes are passed to the element it renders.
NavigationMenuPortal
Doesn't render its own HTML element.
NavigationMenuBackdrop
Renders a <div> element.
Other attributes are passed to the element it renders.
NavigationMenuPositioner
Doesn't render its own HTML element.
NavigationMenuPopup
Renders a <div> element.
Other attributes are passed to the element it renders.
NavigationMenuArrow
Renders a <div> element.
Other attributes are passed to the element it renders.
NavigationMenuItem
Renders a <li> element.
Other attributes are passed to the element it renders.
NavigationMenuContent
Doesn't render its own HTML element.
NavigationMenuViewport
Renders a <div> element.
Other attributes are passed to the element it renders.
NavigationMenuLink
Renders a <a> element.
Other attributes are passed to the element it renders.