Skip to main content

AppHeader

AppHeader — Prism component.

Signature
Density
Viewport
Theme follows the navbar ☀/☾ toggle
Live demo
Open ↗

When to use

AppHeader — Prism component.

Accessibility

Arrow keys move between items; the current item is marked aria-current. Tabs follow the WAI-ARIA tabs pattern (roving tabindex, Home/End).

Import

const { AppHeader } = window.PrismDesignSystem_39d121;

Props

PropTypeRequiredDescription
brandReact.ReactNodeYesBrand lockup node (logo + wordmark).
brandHrefstring
navAppHeaderNavItem[]Inline primary nav; collapses into the side nav below collapseAt.
actions(AppHeaderAction | React.ReactElement)[]Action buttons at the end (icons), or custom nodes.
sideNavExtraAppHeaderNavItem[]Extra items shown only in the side-nav drawer.
hasSideNavbooleanForce the hamburger + drawer on (else shown when sideNavExtra exists or nav collapses).
collapseAtnumberWidth (px) of the header below which inline nav collapses. Default 720.
theme"light" | "dark"Force an explicit header appearance independent of the app theme (e.g. a dark header on a light app). Omit for the default inverse bar.
classNamestring