Typography
Heading
Renders accessible section headings with independent semantic and visual levels.
idle
Usage
Examples
Display heading (h1)
Title heading (h2)
Section heading (h3)
Subsection heading (h4, default size)
Minor heading (h5, default size)
Detail heading (h6, default size)
Default heading (default level 2, default size)
Recommendations
| Guidance | Practice |
|---|---|
| Do | Choose level from the document hierarchy and size from the desired visual emphasis. |
Usage boundaries
| Guidance | Boundary |
|---|---|
| Scope | Visual size does not replace semantic level. Avoid skipping heading levels to obtain a particular appearance. |
API reference
Public props from @mizen-labs/ui. Use exported prop types for the complete TypeScript contract.
| Prop | Type | Default | Description |
|---|---|---|---|
| | 2 | Selects the semantic heading level (h1 through h6). |
| | "heading" | Sets the visual typography scale independently from semantic level. |
| | — | Heading text or phrasing content. |