Heading
Semantic heading; level sets the tag, size sets the visual scale.
Signature
Density
Viewport
Theme and light/dark are set in the top barWhen to use
Semantic heading; level sets the tag, size sets the visual scale.
Accessibility
Use semantic elements (as/level) so structure—not just size—conveys hierarchy. Respect the reader’s line-length and contrast settings.
Install and import
npx shadcn@latest add @prism/heading
import { Heading } from '@/components/prism/Heading';
In a no-build prototype, read it from the bundle instead: const { Heading } = window.PrismDesignSystem_39d121;
Props
| Prop | Type | Required | Description |
|---|---|---|---|
level | 1 | 2 | 3 | 4 | 5 | 6 | — | Semantic level — sets the rendered tag h1–h6 (keep the document outline correct). |
size | "showcase" | "hero" | "display" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | — | Visual scale override. Defaults to h{level}. hero/display are oversized; showcase (56–96px, fluid, tight leading) is for marketing heroes. |
children | React.ReactNode | — | |
className | string | — |