Header
Arranges brand, navigation, actions and a mobile trigger in a reusable site shell.
Attributes
| Name | Type | Default | Description |
|---|---|---|---|
sticky | boolean | false | Pins the header to the configured top offset. |
blurred | boolean | false | Uses a translucent background and backdrop filter. |
navigation-label | string | Primary | Accessible name for the primary navigation landmark. |
Slots
| Name | Description |
|---|---|
brand | Logo, product name or home link. |
(default) | Primary navigation. |
actions | Account and application actions aligned to the end. |
mobile-trigger | Responsive navigation trigger, placed after the actions. |
CSS parts
Shadow DOM styling hooks used with ::part(name). Prefer CSS custom properties when they cover the change.
| Name | Description |
|---|---|
header | The outer page-header landmark. |
content | Inner layout container wrapping and aligning the assigned default slot. |
brand | Container for the brand slot. |
navigation | Primary navigation landmark containing the default slot. |
actions | Container for the trailing actions slot. |
mobile-trigger | Container for the responsive mobile-trigger slot. |
CSS custom properties
Grouped by semantic target and state from --c2-component__target__state--property. Click a group to collapse it; click a name to copy it.
| Name | Type | Default | Description |
|---|---|---|---|
--c2-header--min-height | pixel | 64px | |
--c2-header--padding | padding | 8px 24px | |
--c2-header--gap | pixel | 24px | |
--c2-header--background | color | #ffffff | |
--c2-header--color | color | #18181b | |
--c2-header--border-bottom | border | 1px solid #e4e4e7 | |
--c2-header--box-shadow | box-shadow | none | |
--c2-header--sticky-top | pixel | 0px | |
--c2-header--backdrop-filter | backdrop-filter | blur(16px) | |
--c2-header__blurred--background | color | rgba(255, 255, 255, 0.82) | |
--c2-header__content--max-width | max-width | none | Constrains the inner content while the header surface remains full-width. |
--c2-header__brand--gap | pixel | 8px | |
--c2-header__actions--gap | pixel | 8px | |