Examples

Detail page

Breadcrumbs, status badge, description and two actions.

Preview

Invoice INV-2041

Stark Industries · issued 2 October 2026 · due in 30 days.
Example.tsx
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

PageHeader props
PropTypeDefault
titlerequired
ReactNode—
headingLevel
The page title is normally the page’s <h1>.
1–61
description
ReactNode—
breadcrumbs
Usually <Breadcrumbs>.
ReactNode—
meta
Badges or status next to the title.
ReactNode—
actions
Primary 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.