Layout
PageHeader
The top of a page: breadcrumbs, the page title, status, a short description and the page’s actions. Wraps cleanly on small screens.
import { PageHeader } from '@reactloom/ui';Examples
Detail page
Breadcrumbs, status badge, description and two actions.
Invoice INV-2041
Paid
Stark Industries · issued 2 October 2026 · due in 30 days.
import { Badge, Breadcrumbs, Button, PageHeader } from '@reactloom/ui';
export default function Example() {
return (
<div style={{ width: '100%' }}>
<PageHeader
// In a real page this is the page's <h1>; the docs page already has one.
headingLevel={2}
breadcrumbs={
<Breadcrumbs>
<Breadcrumbs.Item href="#invoices">Invoices</Breadcrumbs.Item>
<Breadcrumbs.Item current>INV-2041</Breadcrumbs.Item>
</Breadcrumbs>
}
title="Invoice INV-2041"
meta={<Badge tone="success">Paid</Badge>}
description="Stark Industries · issued 2 October 2026 · due in 30 days."
actions={
<>
<Button variant="secondary">Download PDF</Button>
<Button>Send reminder</Button>
</>
}
/>
</div>
);
}API reference
| Prop | Type | Default |
|---|---|---|
titlerequired | ReactNode | — |
headingLevelThe page title is normally the page’s <h1>. | 1–6 | 1 |
description | ReactNode | — |
breadcrumbsUsually <Breadcrumbs>. | ReactNode | — |
metaBadges or status next to the title. | ReactNode | — |
actionsPrimary action last. | ReactNode | — |
Customization
Extracted from the component’s source on every build, so it matches the code. How the layers fit together is explained in Customization.
Theme tokens it reads
--pl-color-fg-default --pl-color-fg-muted --pl-font-size-2xl
Accessibility
- The title is the page’s main heading by default (h1).
- Actions follow the title in reading order, so keyboard users meet the title first.
Usage guidelines
Do
- One primary action at most; group the rest in a Menu.
Don’t
- Don’t repeat the breadcrumb’s last item as text above the title.