skip to the page
superthread
compositionspage header
system
superthread
version
2.15.1
date
24.11.26

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-header

serves 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.

light

dark

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.

light

dark

phone

the header wraps as its space narrows. the page title and lede take their phone sizes at 600 px.

light

dark

light

dark

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.

light

dark

light

dark

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 PageHeaderActions to the far end.
PageHeaderDescription
the supporting sentence on a full line.