Browse components

Heading

Renders h1-h6, with an optional visual size that differs from the semantic level.

atoms

Live example

Default usage you can copy and adapt.

Basic Heading

Simple heading component

Display Heading

Section Heading

Subtitle Heading

Subsection

Variants

Different heading variants

Display Heading

Section Heading

Subtitle Heading

Subsection

Props

The props you are most likely to need, with types and defaults.

Props / API
NameTypeRequiredDefaultDescription
level1 | 2 | 3 | 4 | 5 | 6No1Semantic heading level, and the default visual size.
size1 | 2 | 3 | 4 | 5 | 6No—Visual size, when it should differ from the level.
textstringNo—Heading text. Ignored when children are provided.