Genesis
@stable

PageHeader

packages/ui/src/components/layout/PageHeader.tsx

Import
Subpath export: @marktiderman/genesis-ui/layout
import { PageHeader } from "@marktiderman/genesis-ui/layout";
Components
Auto-generated from TypeScript source via react-docgen-typescript.

PageHeader

PropTypeDefaultDescription
title*string—
actionsReactNode—Extra trailing actions (after create); prefer first-class slots below
countnumber—Count badge
countActivebooleanfalse
countFormat{ one?: string; other?: string; filtered?: string | undefined; } | undefined—The count's words, overriding the UI catalogue's `page.countOne`, `countOther` and `countFiltered`. Templates take `{count}`, `{total}`, `{noun}` and `{nouns}`.
createActionReactNode—
densityenum—
detailsReactNode—Collapsible details region below the title row
detailsActivebooleanfalse
detailsHintReactNode—
detailsOpenboolean—
entityNamestring—Singular entity for “N rows” copy when unfiltered
entityNamePluralstring—Several of `entityName`, when not `entityName` + "s".
iconLucideIcon—
onDensityChange((density: "compact" | "comfortable" | "spacious") => void)—
onDetailsOpenChange((open: boolean) => void)—
onPageSizeChange((size: number) => void)—
onViewModeChange((mode: ViewMode) => void)—
optionsPageHeaderOptions—Header chrome config (developer defaults). Merged under user picks from the in-header options menu when `options.configurable` / storage is on.
optionsStorageKeystring—Persist user header-option overrides (localStorage)
pageSizenumber—
secondaryActionsPageHeaderAction[]—Additional actions, rendered in ONE overflow menu — never as more side-by-side buttons. The budget is the point. A header with three top-level buttons squeezes its own title to an ellipsis at real viewport widths, so a surface that genuinely has four actions needs somewhere to put the other three. Before this existed the only place was a fork of the header, which is exactly what one consumer did. Pass `ReactNode` via `actions` instead when you need arbitrary chrome; this prop is for the ordinary case, and it keeps the budget for you.
statsReactNode—Stat cards row, full width, directly under the title block and above `details`. Layout-only: pass `<StatCard>`s (or anything else) and the header positions them. Rendered only when `options.showStats` resolves true — see {@link PageHeaderOptions.showStats}.
subtitlestring—
totalCountnumber—
viewModeenum—
Storybook
Storybook hosts the canonical visual reference with controls for every variant.