Skip to content
Alea0.1
Pro
  1. Alea
  2. Components
  3. Layout
  4. PageHeader and PageActions

Layout

PageHeader and PageActions

The top of a page: breadcrumbs or back, a title with media and meta, a subtitle, the main action, secondary actions that fold into a menu on phones, and tabs; sticky and compact when you need them. PageActions closes a form page; FooterHelp points to help.

import { PageHeader, PageActions, FooterHelp } from '@alea/ui';

Examples

Page header

Breadcrumbs, back, title, meta, subtitle, the main action and secondary actions. Resize the window: on phones the secondary actions fold into a More menu and the main action goes full width.

  1. Orders
  2. #1042

Order #1042

PaidUnfulfilledOct 17, 2026

Northwind Traders · 4 items · $1,240

Compact with tabs

compact for dense apps; tabs sit under the header.

Customers

2,481 people

Page actions and help

PageActions closes a form page (primary right, secondary left, stacked on phones); FooterHelp points to more help.

Tokens

The design tokens this component reads, with their value in the current theme. Override any of them to restyle it.

Color

  • --alea-bg…
  • --alea-border…
  • --alea-text-muted…

Space

  • --alea-space-1…
  • --alea-space-2…
  • --alea-space-3…
  • --alea-space-4…
  • --alea-space-6…

Type

  • --alea-font-family-body…
  • --alea-font-size-2xl…
  • --alea-font-size-md…
  • --alea-font-size-sm…
  • --alea-font-size-xl…
  • --alea-font-tracking-tight…
  • --alea-font-weight-semibold…

Motion

  • --alea-motion-duration-base…
  • --alea-motion-ease-out…

Layer

  • --alea-z-sticky…

Props

PageHeader props

The top of a page: breadcrumbs or back, title, subtitle, meta, actions and tabs. Secondary actions fold into a menu on phones.

PropTypeDefaultDescription
titlerequiredReactNode-The page title (an h1 by default).
actionsReactNode-The main actions (usually one primary button). They stay visible on phones.
backstring | (() => void)-Where Back goes: an href, or a function. Shows an arrow button before the title.
backLabelstring-The label of the back button. Default "Back".
breadcrumbs{ label: ReactNode; href?: string; }[]-The trail above the title.
classNamestring-Extra class names.
compactboolean-Tighter spacing and a smaller title, for dense apps.
headingLevel2 | 3 | 11Heading level. Default 1.
mediaReactNode-An avatar, icon or thumbnail before the title.
metaReactNode-Badges and facts next to the title: status, dates, owner.
secondaryActionsPageAction[]-More actions: shown as buttons from 768 px up, folded into a More menu on phones.
stickyboolean-Sticks to the top while scrolling, and gets a border once stuck.
subtitleReactNode-A line under the title.
tabsReactNode-Tabs or a segmented control under the header.

PageActions props

The row of actions at the end of a form page: primary on the right, secondary on the left. Full width and stacked on phones.

PropTypeDefaultDescription
classNamestring-Extra class names.
primaryReactNode-The main action, on the right.
secondaryReactNode-Other actions, on the left (Delete, Archive).

FooterHelp props

A quiet line at the end of a page that points to help: "Learn more about payouts".

PropTypeDefaultDescription
classNamestring-

Specs

Generated from the source: the variants in the types, the states and tokens in the CSS, and the motion patterns that apply. The grids render the real component in both themes; the numbers are measured from the page.

PageHeader

Dark and light
Every color comes from theme tokens, so it follows data-theme (and presets like Graphite) on the page or any wrapper. Contrast is checked in both themes.
Styling hooks
.alea-page-header-secondary.alea-page-header-more.alea-page-header.alea-page-header-crumbs.alea-page-header-main.alea-page-header-back.alea-page-header-media.alea-page-header-titles.alea-page-header-title-row.alea-page-header-title.alea-page-header-meta.alea-page-header-subtitle
Data attributes
data-compactdata-stickydata-stuck

PageActions

Dark and light
Every color comes from theme tokens, so it follows data-theme (and presets like Graphite) on the page or any wrapper. Contrast is checked in both themes.
Styling hooks
.alea-page-actions.alea-page-actions-secondary.alea-page-actions-primary

FooterHelp

Dark and light
Every color comes from theme tokens, so it follows data-theme (and presets like Graphite) on the page or any wrapper. Contrast is checked in both themes.
Styling hooks
.alea-footer-help

Accessibility

  • The title is a real heading (h1 by default; set headingLevel when the page already has one).
  • Back is a named button; breadcrumbs are a navigation landmark with the current page marked.
  • Secondary actions are the same actions in a menu on phones, so nothing is lost on small screens.

Keyboard

KeyDoes
TabMoves through back, breadcrumbs and actions

Do and don't

Do

  • One main action in actions; the rest in secondaryActions.
  • Keep titles short; put facts in meta.

Don't

  • Don't put form fields in the header.
  • Don't use more than one h1 on a page.
Tested with axe, keyboard and screen reader roles