<Heading>
Renders every heading. level sets the tag and visual sets the size. The visual size never changes the document outline.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
levelRequired | 1 | 2 | 3 | 4 | 5 | 6 | None | None |
visual | 'display-xl' | 'display-lg' | 'display-md' | 'h1' | 'h2' | 'h3' | 'h4' | 'eyebrow' | None | None |
tone | 'ink' | 'paper' | 'accent' | 'muted' | 'ink' | Deprecated: navy → ink, plum → ink, white → paper, coral → accent. |
align | 'left' | 'center' | 'left' | None |
class | string | None | None |
id | string | None | None |
Do
- Pick level from the outline and visual from the design.
- Set page titles in one typeface, with no serif-italic phrase and no colored end mark.
Don’t
- Skip heading levels to get a smaller size.
- Use tone="faint" or deprecated tones such as navy and coral.
View markup
<Heading level={2} visual="h2">Subsection heading</Heading>
<Text size="lg" tone="muted">Explain the situation and the reason.</Text>
