Athanor.Components.Heading (Athanor v0.1.0-beta.1)

Copy Markdown View Source

Heading primitive. Renders a semantic <h1><h6> wrapped in the shared formatting div so the host's Tailwind config doesn't override spacing/colors.

Props

  • text (string, required) — heading text
  • level (1..6, default 2) — heading level
  • formatting (map, optional) — see Athanor.Components.Formatting