API Reference

PropTypeDefaultDescription
Brandtempl.ComponentnilBrand/logo content shown at the start of the bar.
BrandHrefstring"/"Link target for the brand. Empty values fall back to /.
Links[]NavLinknilPrimary desktop and mobile nav links.
NavLinkstruct-Link row: Label, Href, Active, and LinkAttrs. Active adds aria-current="page".
Actions[]ActionItemnilCustom controls rendered after the brand or before the avatar.
ActionItem.Contenttempl.ComponentnilButton, badge, theme selector, or other control to render in the navbar.
ActionItem.PositionActionPositionActionLeftActionLeft renders after the brand; ActionRight renders before the avatar and inside the mobile menu.
User*UserProfilenilUser profile; when present, renders the avatar dropdown trigger.
UserProfilestruct-Name and Email render in the dropdown header. Avatar overrides the default user icon.
UserMenu[]UserMenuItemnilItems in the user dropdown and mobile menu.
UserMenuItemstruct-Menu row: Label, Href, optional Icon, LinkAttrs, and Danger styling.
NavAttrstempl.AttributesnilArbitrary attributes on the <nav>.
NavClassstring""Extra classes on the nav.