What it does
Maps level 1–6 to native heading tags with shared tone and emphasis toggles.
scroll-m-20 aids anchor navigation without extra wrappers.
Composition and API
Combine tone with bold, italic, underline, or strikethrough when specs call for emphasis.
Avoid skipping heading ranks inside the same container.
Common use cases
- Hero titles and section titles in docs.
- Admin shells with predictable heading scale.
- Landing pages that keep one clear h1.
- Cards where visual size differs from outline rank.
Accessibility
Expose the correct level for screen reader outlines.
Do not style plain divs as headings—use the semantic tag.
Next.js integration notes
Import Heading from `@zentauri-ui/zentauri-components/ui/typography`.
Keep interactive playgrounds in client components only when needed.
FAQ
Can heading level differ from visual size?
Yes. Use displayLevel to adjust Tailwind scale classes while keeping the semantic tag from level.
Do headings include spacing presets?
Spacing is left to layout utilities; primitives stay predictable so page shells control rhythm.
Are tones accessible on dark backgrounds?
Defaults target slate surfaces used across Zentauri previews; verify contrast if you change surfaces.