Header

App top bar with brand, primary navigation links, and an actions slot

Category: navigation · WCAG 2.2-AA · navigation, app-shell, top-bar, banner

States

Props

PropTypeDefaultDescription
labelsHeaderLabelsOverrides for the component’s user-visible strings (i18n).
brandReact.ReactNodeProduct name or logo area, typically wraps a link
links{ label: string; href: string; active?: boolean }[]Primary navigation links; active link gets aria-current="page"
actionsReact.ReactNodeRight-aligned slot for buttons or an avatar
stickybooleanfalseWhen true, the header sticks to the top on scroll.
classNamestringAdditional CSS class names merged onto the root element.

Design tokens

When to use

When not to use

How to build an accessible Header in React →

Examples

Basic

<Header brand="cascivo" links={[{ label: 'Docs', href: '/docs' }]} />

With actions

<Header brand="cascivo" actions={<Button size="sm">Sign in</Button>} />

Sticky

<Header sticky brand="cascivo" links={links} />

Related components

← Back to docs