Skip to content

App Header

See Page structure for the AppHeader slot layout.

SidebarTrigger in AppHeaderLeading is mobile-only. On desktop the sidebar has its own collapse control; the header trigger is hidden on desktop. SidebarTrigger reads sidebar state from context; it requires SidebarProvider in the tree and will throw without it.

// Correct usage: mobile hamburger paired with a Sidebar
<SidebarProvider>
<AppLayout>
<Sidebar>{/* navigation */}</Sidebar>
<AppLayoutContent>
<AppHeader>
<AppHeaderLeading>
<SidebarTrigger
icon={<MenuIcon size={16} />}
className="tw:md:hidden"
/>
</AppHeaderLeading>
{/* header content */}
</AppHeader>
<AppLayoutMain>{/* page content */}</AppLayoutMain>
</AppLayoutContent>
</AppLayout>
</SidebarProvider>

AppHeaderContent scrolls its children horizontally when they overflow; no wrapping, no second line. It automatically keeps trailing content, such as the current breadcrumb, in view.

Add SidebarTrigger only inside the full sidebar layout shown in Page structure.

Code
<AppHeader>
<AppHeaderContent>
<Breadcrumb>
<BreadcrumbList>
<BreadcrumbItem>
<BreadcrumbLink href="#">Home</BreadcrumbLink>
</BreadcrumbItem>
<BreadcrumbSeparator />
<BreadcrumbItem>
<BreadcrumbLink href="#">Accounts</BreadcrumbLink>
</BreadcrumbItem>
<BreadcrumbSeparator />
<BreadcrumbItem>
<BreadcrumbLink href="#">Green Valley Farm</BreadcrumbLink>
</BreadcrumbItem>
<BreadcrumbSeparator />
<BreadcrumbItem>
<BreadcrumbLink href="#">Orders</BreadcrumbLink>
</BreadcrumbItem>
<BreadcrumbSeparator />
<BreadcrumbItem>
<BreadcrumbPage>ORD-2024-00847</BreadcrumbPage>
</BreadcrumbItem>
</BreadcrumbList>
</Breadcrumb>
</AppHeaderContent>
<AppHeaderTrailing>
<AppHeaderNotifications count={3} />
</AppHeaderTrailing>
</AppHeader>

AppHeaderTrailing is always pushed to the right edge; no AppHeaderContent needed for it to stay in position.

Code
<AppHeader>
<AppHeaderLeading>
<span className="tw:text-sm tw:font-medium">Accounts</span>
</AppHeaderLeading>
<AppHeaderTrailing>
<AppHeaderNotifications count={5} />
</AppHeaderTrailing>
</AppHeader>

No documented props

No documented props

No documented props

Icon button slot for opening product notifications, with optional count badge.

NameType/Description
aria-labelstring | undefined
Accessible name for the icon-only notification button.
classNamestring | undefined
countnumber | undefined
Badge value. Omit or pass 0 to hide the badge.
onClickMouseEventHandler<HTMLButtonElement> | undefined

No documented props