[!NOTE] Compound component — an opinionated composition of Helix primitives. Composes:
Button,Breadcrumb.
Import
import { PageHeader, PageHeaderBreadcrumb, PageHeaderContent, PageHeaderHeadingGroup, PageHeaderHeading, PageHeaderDescription, PageHeaderActions } from "@timelycare/helix-ui"
Usage
<PageHeader>
<PageHeaderBreadcrumb>
<Breadcrumb>
<BreadcrumbList>
<BreadcrumbItem><BreadcrumbLink href="/">Home</BreadcrumbLink></BreadcrumbItem>
<BreadcrumbSeparator />
<BreadcrumbItem><BreadcrumbPage>Appointments</BreadcrumbPage></BreadcrumbItem>
</BreadcrumbList>
</Breadcrumb>
</PageHeaderBreadcrumb>
<PageHeaderContent>
<PageHeaderHeadingGroup>
<PageHeaderHeading>Appointments</PageHeaderHeading>
<PageHeaderDescription>Manage your upcoming visits</PageHeaderDescription>
</PageHeaderHeadingGroup>
<PageHeaderActions>
<Button>New appointment</Button>
</PageHeaderActions>
</PageHeaderContent>
</PageHeader>
For route-driven breadcrumbs, NavBreadcrumb fills the trail from the same nav items model you pass to AppSidebar:
<PageHeaderBreadcrumb>
<NavBreadcrumb items={navItems} pathname={pathname} trailing={[{ label: client.name }]} />
</PageHeaderBreadcrumb>
NavBreadcrumb derives only the static section → item chain from the route; the nav model can't know a dynamic entity name. On a detail route (e.g. /clients/1074, which resolves to the /clients/list item), pass the entity as trailing — otherwise the resolved list item becomes the terminal (current-page) crumb, so the breadcrumb reads as the list and offers no link back to it. With trailing, the item links back and the dynamic leaf reads as the current page.
Status beside the title
<PageHeaderHeading adornment={<Badge variant="success">Active</Badge>}>
Avery Chen
</PageHeaderHeading>
The badge follows the name, and on a long name that wraps it follows the last word. It isn't part of the heading's text, so a screen reader announces the page as "Avery Chen" and reads the status after it.
Titles wrap rather than truncate (since 0.12.0).
A record's avatar
<PageHeaderHeadingGroup
avatar={
<Avatar size="xl">
<AvatarImage src={member.photoUrl} alt="" />
<AvatarFallback>AC</AvatarFallback>
</Avatar>
}
>
<PageHeaderHeading>Avery Chen</PageHeaderHeading>
<PageHeaderDescription>Student · University of Arizona</PageHeaderDescription>
</PageHeaderHeadingGroup>
On a person's or an organisation's detail page, the photo goes before the name at Avatar's xl size, 48px, centred against the name and description. It stays beside them on a phone. Keep it at 48px: a bigger avatar pushes the tabs and the first card down every record page, and the name already says whose page it is. The image takes an empty alt, because the heading next to it names the person.
Where the avatar changes the photo, as on admin's member pages, make it a button named "Change photo". The name stays the page's heading.