Install the package from npm, then import the component in your application code.
02
Parts
Header shell
Full-width bar. Solid surface + shadow by default; bg-transparent + no shadow when the transparent flag is set.
Brand slot
Spring wordmark (or custom logo node / link) pinned on the left.
Navigation row
Marketing variant only — nav links with optional menu chevron cues.
CTA slot
Marketing variant only — defaults to SpringButton (primary, sm, 'Apply Now').
Responsive behavior
Nav cluster hides on smaller widths; logo remains visible and anchored.
03
04
| Prop | Type | Notes |
|---|---|---|
| variant | 'app' | 'marketing' | Content preset (default 'app'). |
| transparent | boolean | Drops bg-surface + shadow so a hero / page wash bleeds through. Combine with either variant. |
| logo | ReactNode | Custom brand node override. |
| logoHref | string | Wraps the default Spring wordmark in an anchor when logo is omitted. |
| navItems | SpringHeaderNavItem[] | Marketing only. Pass [] to hide nav links. |
| cta | ReactNode | Marketing only. Replaces default Apply Now button. |
| ctaLabel / onCtaClick | string / handler | Quick default CTA overrides. |
| children | ReactNode | Manual trailing-region override (highest priority). |
| className | string | Merged on root <header>. |