Skip to main content

IconPageHeader

packages/core/components/molecules/IconPageHeader.js · Tier: molecule · Module: core · Rendering: Server Component

Purpose​

A compact page header with a rounded icon badge, an <h1> title and an optional subtitle. Used on detail/sub pages (e.g. my-tickets, event tickets) where a back button precedes the header.

Props​

PropTypeRequiredDefaultDescription
iconstringyes—Material Symbols name (filled).
titlestringyes—Page <h1>.
subtitlestringno—Secondary line under the title.
iconWrapClassNamestringno'bg-primary/10'Badge background classes.
iconClassNamestringno'text-primary'Icon colour classes.

Composition​

  • Uses: atoms/core/Icon.
  • Used by: detail/sub pages that already render a BackButton above the header.

Internationalisation​

None directly — title/subtitle supplied (localized) by the caller.

Accessibility​

Renders a single page <h1>; the badge icon is decorative.

Styling & tokens​

rounded-md badge, text-h2, text-primary, text-body-sm, text-on-surface-variant.

Usage​

<IconPageHeader icon="confirmation_number" title={t.tickets.myTickets} />

molecules/core/PageHeader (list-page variant).