SectionHeader
The lightweight title row that opens an in-page section.
Signature
Density
Viewport
Theme and light/dark are set in the top barWhen 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
| Prop | Type | Required | Description |
|---|---|---|---|
eyebrow | React.ReactNode | — | |
title | React.ReactNode | Yes | |
description | React.ReactNode | — | |
actions | React.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. |
id | string | — | Put on the heading element (not the wrapper), so aria-labelledby can point at the title. |
rule | boolean | — | Bottom rule under the header. |
as | keyof React.JSX.IntrinsicElements | — | Heading tag for the title. Default "h2". |