Skip to content
Design System
GitHub

Section header

v0.64.0, changelog

A section heading at page level (16 px bold, outside cards) or surface level (14 px medium, inside one), with an optional count, a line and actions; `as` sets the heading level.

Robots 1,284

Every robot on the three sites, with its state and battery.

Patrol dog 7F3ANorth gatePatrolling
Courier 2B19Hall BLow battery

Page

Install
npx shadcn add @syncrobotic/section-header

Also installs: @syncrobotic/cn, @syncrobotic/format-number

Overview

When to use

  • A section of a page between the page header and its cards: Robots 1,284, with Add robot.
  • A section inside a card, a sheet or a panel: Sensors 6, with Calibrate.

Use something else

  • The top of the page: Page header.
  • The head of a card that shows data (a chart, a figure, a ring): Card (CardDataHeader).
  • A card's own title: Card (CardTitle).

More examples

States and real uses. Each example is also a Storybook story and a visual regression test.

Surface

Levels

Usage rules

  • Two levels, from typography: page (16 px bold, under the page's title at 18) for a section of the page, outside the cards; surface (14 px medium, never bold) for a section inside a card, a sheet or a panel. Never another size or weight for a section title.
  • The heading is an h2 at page and an h3 at surface. Set as so the page's outline skips no level; the look stays the same.
  • count is how many items the section holds, written in full with grouping (1,284, never 1.2K), muted after the title. A count that needs someone (unread, failing) is a CountBadge in the title instead.
  • Actions are the section's own (View all, Add): at the right, under the title when the title needs the width. size="sm" buttons in a surface header.
  • A card that shows data (a chart, a figure) opens with CardDataHeader; a page opens with PageHeader. Give the section aria-labelledby with the heading's id.

Changelog

  • 0.64.02026-12-01Formatted with Prettier (class order sorted); the code is unchanged.
  • 0.58.02026-11-28Stable: shipped ten releases with no breaking change, with unit tests, measured accessibility (components) and use/instead docs. Its API now changes only after a release deprecates what goes, with a migration line.
  • 0.53.02026-11-27Its description gives the page level's real size, 16 px bold. Its doc opens with its description, word for word; the code is unchanged.

How to upgrade