page header
a title, a way back, live meta and the next action, with a lede under them. a panel keeps the section step; a public page gives the title more room.
bunx --bun shadcn@latest add @mk/page-headerserves constellation, quanta, trisys, orbit, artifacts, and the public site.
example
add a task and the meta count changes with it. the description takes its own line below the title and actions.
sizes
panel is the default above, its title at the section step in the first ink. page below uses the hero title. both print the same lede, held to a reading measure of 27.5em.
phone
the header wraps as its space narrows. the page title and lede take their phone sizes at 600 px.
a short title
with no meta or actions a short title leaves room beside it in a working panel. the lede still takes the line below, held to its measure.
parts
PageHeaderBack- a link above the title, with a left arrow and the destination in words.
PageHeaderTitle- the page's h1, sized by
PageHeader. PageHeaderMeta- a live line that pushes
PageHeaderActionsto the far end. PageHeaderDescription- the supporting sentence on a full line.