atoms
Heading
A semantic h1 to h6 chosen by level, so a caller keeps the document outline correct while styling the text.
Specimens
Selected work
{{ Heading.render({
level: 2,
text: "Selected work",
classes: "font-display text-4xl text-neutral-100"
}) }}Recent projects
{{ Heading.render({
level: 3,
text: "Recent projects",
id: "spec-heading-3",
classes: "font-display text-xl text-neutral-300"
}) }}Params
| Param | Type | Description |
|---|---|---|
level | number | Heading level, 1 to 6. Values outside that range render h2. Defaults to 2. |
text | string | Heading text. |
id | string | Optional id on the heading. |
classes | string, variant map, or array | Applied to the heading through classes. |