Skip to main content

SectionHeader

The lightweight title row that opens an in-page section.

Signature
Density
Viewport
Theme and light/dark are set in the top bar
Live demo
Open ↗

When to use​

The lightweight title row that opens an in-page section.

Accessibility​

Heading levels are semantic (h1/h2…) so the page outline is correct for assistive tech.

Install and import​

npx shadcn@latest add @prism/section-header
import { SectionHeader } from '@/components/prism/SectionHeader';

In a no-build prototype, read it from the bundle instead: const { SectionHeader } = window.PrismDesignSystem_39d121;

Props​

PropTypeRequiredDescription
eyebrowReact.ReactNode—
titleReact.ReactNodeYes
descriptionReact.ReactNode—
actionsReact.ReactNode—
size"xs" | "sm" | "md" | "lg"—"lg" | "md" | "sm" are heading-sized; "xs" is a small label-style heading (caps, caption size) for sections inside a card or form.
idstring—Put on the heading element (not the wrapper), so aria-labelledby can point at the title.
ruleboolean—Bottom rule under the header.
askeyof React.JSX.IntrinsicElements—Heading tag for the title. Default "h2".