Header
Identify your site and connect visitors to its main sections with default and extended header layouts.
Examples
Default
Breakpoints
Mobile
320pxMobile Lg
480pxTablet
640pxDesktop
1024pxheader-demo.tsx
Extended
Breakpoints
Mobile
320pxMobile Lg
480pxTablet
640pxDesktop
1024pxheader-extended-demo.tsx
Component API
Compose branding and navigation inside Root. Use the Extended and SecondaryNav parts for the extended layout.
Root<header>
Supplies the header layout to its children.
| Prop | Type | Default | Description |
|---|---|---|---|
variant | default | extended | default | Selects the header layout. |
Container<div>
Constrains header content width.
Branding<div>
Holds agency identity.
| Prop | Type | Default | Description |
|---|---|---|---|
size | md | lg | md | Sets the branding text size. |
Primary<div>
Place the main navigation beside Branding.
Extended<div>
Arranges extended header content.
SecondaryNav<div>
Contains secondary navigation.
SecondaryList<ul>
Lists secondary destinations.
SecondaryItem<li>
Wrap a SecondaryLink in each list item.
SecondaryLink<a>
Use this for a destination in SecondaryList.