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

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

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

light

recent runs

2
  • run-024 · orbit
  • run-023 · quanta

drafts

0

no drafts yet.

dark

recent runs

2
  • run-024 · orbit
  • run-023 · quanta

drafts

0

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

light

runs

4all runs

rest
quiet link

runs

4all runs

hover
foreground and underline

runs

4all runs

focus
2 px house ring

dark

runs

4all runs

rest
quiet link

runs

4all runs

hover
foreground and underline

runs

4all runs

focus
2 px house ring

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.

light

this week

2

subtitle
the subtitle step, in foreground

then

2

instrument
muted instrument

dark

this week

2

subtitle
the subtitle step, in foreground

then

2

instrument
muted instrument

parts

Section
ties its accessible name to SectionTitle. pass titleId for a stable deep link.
SectionHeader
aligns the title, count and action on their baseline, with wrapping when they need it. quiet is subtitle or instrument.
SectionCount
announces a changed count. SectionAction defaults to “more” and accepts the app's router link.