Section Header
Compact section-divider primitive with an uppercase title and optional right-aligned meta label. Sized for in-page content sectioning, distinct from the page-level PageHeader.
Basic
With Meta
Dashboard Composition
Stack SectionHeader between content blocks to divide a page body into clearly labelled
sections. The compact 36px row, surface-subtle background, and uppercase tracking
establish a consistent rhythm across 3-8 sections per page.
Installation
npx visor add section-headerThis copies two files into your project:
components/ui/section-header/section-header.tsx— the componentcomponents/ui/section-header/section-header.module.css— the styles
Usage
import { SectionHeader } from '@/components/ui/section-header/section-header';
export default function Dashboard() {
return (
<>
<SectionHeader title="Tonight's events" meta="2 events" />
{/* ...section content... */}
<SectionHeader title="Activity" meta="last hour" />
{/* ...section content... */}
</>
);
}API Reference
SectionHeaderProps
No props data available for “section-header”.
The component also accepts all standard HTML attributes for the root element (defaults to <header>).
Accessibility
SectionHeader is a visual divider, not a semantic heading. The title renders as a
<span> by default — it intentionally does not contribute a heading level to the
document outline. If you need real heading semantics, wrap your heading element inside
the title slot:
<SectionHeader title={<h2>This week</h2>} />This keeps the markup accessible while preserving the compact visual rhythm.
When to Use
- Dividing a page body into stacked sections inside a dashboard or admin surface
- Pairing a small uppercase label with a count, timestamp, or status on the right
- Establishing visual rhythm across 3-8 sections on a single page
When Not to Use
- Page-level hero with title, description, breadcrumb, and actions — use
PageHeader - In-content typographic headings (h2 / h3 inside an article) — use
Heading - Action-bearing headers with buttons or menus — use
PageHeader
QuickActions
A vertical list of action rows pairing a left-aligned label with a right-aligned Kbd shortcut. Display-only by default; opt-in interactive mode makes rows activatable buttons. Built with CSS Modules — copy it into your project and own it completely.
Stepper
A multi-step progress indicator with horizontal and vertical orientations. Auto-derives step status from activeStep with accessible ARIA roles — copy it into your project and own it completely.