ComponentStable

Components / Navigations

SpringHeader

Full-width global header with two presets — minimal app for application flows, and marketing with primary nav and an Apply Now CTA. Surface uses bg-card + shadow-drop-05.

Installation

Install the package from npm, then import the component in your application code.

Terminal
Copied!
Import
Copied!

02

Anatomy

Structural breakdown of the component. The parts stay stable; only trailing content changes by variant.
Marketing page content

Parts

  1. Header shell

    Full-width bar. Solid surface + shadow by default; bg-transparent + no shadow when the transparent flag is set.

  2. Brand slot

    Spring wordmark (or custom logo node / link) pinned on the left.

  3. Navigation row

    Marketing variant only — nav links with optional menu chevron cues.

  4. CTA slot

    Marketing variant only — defaults to SpringButton (primary, sm, 'Apply Now').

  5. Responsive behavior

    Nav cluster hides on smaller widths; logo remains visible and anchored.

03

Variants

Two content presets — app for in-product flows, marketing for acquisition pages — plus an orthogonal transparent flag that drops the surface background and shadow.
Spring
Application content
Copied!
Marketing page content
Copied!
Hero section bleeds under the transparent header
Copied!
Spring
AppFlow page wash bleeds under the transparent header
Copied!

04

Develop

API surface and implementation hooks for product teams.
PropTypeNotes
variant'app' | 'marketing'Content preset (default 'app').
transparentbooleanDrops bg-surface + shadow so a hero / page wash bleeds through. Combine with either variant.
logoReactNodeCustom brand node override.
logoHrefstringWraps the default Spring wordmark in an anchor when logo is omitted.
navItemsSpringHeaderNavItem[]Marketing only. Pass [] to hide nav links.
ctaReactNodeMarketing only. Replaces default Apply Now button.
ctaLabel / onCtaClickstring / handlerQuick default CTA overrides.
childrenReactNodeManual trailing-region override (highest priority).
classNamestringMerged on root <header>.