PageHeader
packages/ui/src/components/layout/PageHeader.tsx
Import
Subpath export:
@marktiderman/genesis-ui/layoutimport { PageHeader } from "@marktiderman/genesis-ui/layout";Components
Auto-generated from TypeScript source via
react-docgen-typescript.PageHeader
| Prop | Type | Default | Description |
|---|---|---|---|
| title* | string | — | |
| actions | ReactNode | — | Extra trailing actions (after create); prefer first-class slots below |
| count | number | — | Count badge |
| countActive | boolean | false | |
| 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}`. |
| createAction | ReactNode | — | |
| density | enum | — | |
| details | ReactNode | — | Collapsible details region below the title row |
| detailsActive | boolean | false | |
| detailsHint | ReactNode | — | |
| detailsOpen | boolean | — | |
| entityName | string | — | Singular entity for “N rows” copy when unfiltered |
| entityNamePlural | string | — | Several of `entityName`, when not `entityName` + "s". |
| icon | LucideIcon | — | |
| onDensityChange | ((density: "compact" | "comfortable" | "spacious") => void) | — | |
| onDetailsOpenChange | ((open: boolean) => void) | — | |
| onPageSizeChange | ((size: number) => void) | — | |
| onViewModeChange | ((mode: ViewMode) => void) | — | |
| options | PageHeaderOptions | — | Header chrome config (developer defaults). Merged under user picks from the in-header options menu when `options.configurable` / storage is on. |
| optionsStorageKey | string | — | Persist user header-option overrides (localStorage) |
| pageSize | number | — | |
| secondaryActions | PageHeaderAction[] | — | 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. |
| stats | ReactNode | — | 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}. |
| subtitle | string | — | |
| totalCount | number | — | |
| viewMode | enum | — |