LAYOUT
AppTopBar
Site header with three slots: brand, navigation, and actions. Defaults to sticky top placement; opt out via sticky={false}.
Import
Live preview
DEMO
Theme
Basic usage
Non-sticky variant
API
AppTopBar props
| Prop | Type | Default | Description |
|---|---|---|---|
| logo* | ReactNode | — | Branding slot. Wrap a Next link or anchor that points to home. |
| nav | ReactNode | — | Inline navigation. Renders inside a <nav> element. |
| actions | ReactNode | — | Right-aligned controls. Compose with AttrToggleGroup, Popover, etc. |
| sticky | boolean | true | Stick the bar to the viewport top with z-index header. |
| menuTriggerSize | 'sm' | 'md' | 'lg' | 'md' | Size of the mobile menu hamburger ('sm', 'md', or 'lg'; default 'md') so it can be matched to an adjacent action button. |
| menuTriggerVariant | 'flat' | 'raised' | 'flat' | Memphis surface of the hamburger: 'flat' (default, plain bordered) or 'raised' (offset shadow + press, identical to the ghost Button). |
| menuTriggerCompact | boolean | false | Render the hamburger at compact density so its default 'md' box is 30px, pixel-matching a compact IconButton in actions. |
| className | string | — | Tailwind classes are merged on top of the defaults. |
Accessibility
- The header renders as a
<header>(banner role). - Wrap the brand mark in a link with an
aria-labelwhen the label is decorative (icon-only).