Skip to Content
Puzzle

App Bar

Responsive application branding and navigation.

Import

import { AppBar } from "@puzzle-ui/ui";

The app bar adapts its navigation to a mobile drawer. Resize the preview to see both layouts.

390 × 450

API

PropTypeDefaultDescription
logoReactNode-Brand content.
titlestring-Application title.
logoHrefstring"/"Brand destination.
navigationItems{ label: string; href: string; current?: boolean; external?: boolean }[][]Navigation links.
customNavigationItemsT[]-Custom navigation data.
renderCustomNavigationItems(item: T, index: number) => ReactNode-Renderer for custom items.
trailingComponentsReactNode-Actions after navigation.
stickybooleanfalseSticky positioning and PageLayout offset integration.
ariaLabelstring"Main navigation"Accessible navigation name.
classNamestring-Root styling hook.

Use descriptive destinations and label icon-only actions. Place sticky bars in PageLayout.Header to scope their measured layout offset to that page. Make the header region itself sticky (position: sticky; top: 0) when it wraps the bar, so the wrapper does not limit its sticky travel.

;