Section Header
Uppercase heading element for labeling content sections, with configurable heading level and variant.
Installation
dgadd is not public on npm yet. Until the first release, pack @diffgazer/add from the repository and install that tarball into this app, which is what puts dgadd on pnpm exec.
The hosted registry is not public yet because r.b4r7.dev does not resolve. Use this source checkout or a local registry preview until the endpoint returns 200.
Diffgazer packages are not yet published to npm. Until the first release, pack @diffgazer/ui and @diffgazer/keys from the repository and install those tarballs.
UI components require Tailwind CSS v4. Local copy mode imports src/styles/styles.css; package mode uses @diffgazer/ui CSS once packages are available.
Usage
Examples
Variants
API Reference
SectionHeader
Accessibility
Notes
Variant
The variant prop controls visual intensity. Default uses foreground color, muted uses muted-foreground, and accent uses the theme accent for a highlighted section label.
Heading Level
The as prop renders as h2, h3, or h4 (defaults to h3). Each level carries its own size, weight, and letter-spacing so the three read as a scale: h2 is the largest and tightest, h4 the smallest and widest-tracked.
Spacing
SectionHeader owns no outside margin. The layout that places the header decides the gap below it (for example mb-2 next to body copy, or a flex gap in a stacked panel).
Source
Install via CLI: pnpm exec dgadd add ui/section-header.
Highlighted source loads after this disclosure opens. Browse the source repository.