section header
a named section with its title, a live count and a way to the rest. a full rule separates the head from the content, or a quiet head prints no rule.
bunx --bun shadcn@latest add @mk/section-headerserves constellation, quanta, trisys, orbit, and the public site.
example
show all runs to change the count, or add a draft below. the next section leaves 48 px above its head.
recent runs
2- run-024 · orbit
- run-023 · quanta
drafts
0no drafts yet.
recent runs
2- run-024 · orbit
- run-023 · quanta
drafts
0no drafts yet.
states
the way onward is quiet at rest, underlined on hover and ringed on keyboard focus. a section can also omit its action or count.
a quiet head
a list of plain rows has no rules, so its head has none: quiet drops the rule and sits 4 px over the content. use subtitle for a section the page is made of and instrument for a muted line over a short list.
parts
Section- ties its accessible name to
SectionTitle. passtitleIdfor a stable deep link. SectionHeader- aligns the title, count and action on their baseline, with wrapping when they need it.
quietissubtitleorinstrument. SectionCount- announces a changed count.
SectionActiondefaults to “more” and accepts the app's router link.