Set base on the root HeadingLevels. Each nested HeadingLevels advances the next heading level.
This keeps the document outline aligned with the component structure.
Heading: Automatic levels
Loading Heading: Automatic levels example
Use level to override the context for one heading. It does not change the level for siblings or
children.
<Heading level={2}>Explicit h2</Heading>
Outside HeadingLevels, Heading falls back to h2. Nested contexts cap at h6.
When renderRoot owns the heading, use the callback's element and level state to return the
resolved heading tag. This preserves automatic levels inside nested HeadingLevels contexts.
By default, Heading maps h1–h4 to heading1–heading4, h5 to lead, and h6 to body, and uses
the heading font-weight role. Set typography to change the visual style without changing the
semantic level. Use display for oversized marketing-style headings.
Sets text colour from the nearest Luke UI background. On a solid background, every semantic
role reads as that background's primary colour. Omit it to inherit the surrounding colour.
Applies a complete typography style: family, size, weight, line height, letter spacing, and
trim. When omitted, the style follows the resolved heading level: heading1–heading4 for
levels 1–4, lead for 5, and body for 6. The default level comes from HeadingLevels
context when level is omitted.