Heading
A section or page heading at one of four levels.
Group: Text · Kind: macro · in the lite catalog
Preview
Section titled “Preview”exampleWelcome
level · h2Welcome
level · h3Welcome
level · h4Welcome
style · on a band
Welcome
Platforms
Section titled “Platforms”The same specimen painted by React, SwiftUI, Compose and gpui.




| Prop | Type | Required | Bindable | Description |
|---|---|---|---|---|
text |
string |
yes | yes | The heading text. |
level |
h1 | h2 | h3 | h4 |
– | – | h1 is the page title, h4 the smallest. Default "h2". |
Events
Section titled “Events”None.
None.
Children
Section titled “Children”none
A2UI basic mapping
Section titled “A2UI basic mapping”The basic catalog’s Text (h1–h4) renders as Heading.
Built from
Section titled “Built from”Accessibility
Section titled “Accessibility”Role: heading
heading (level from h1–h4)
Not focusable; no keys.
Theming
Section titled “Theming”Recipe parts: Heading/root
Keyed by: level :hover :pressed :focus :disabled :checked :open :selected :invalid :dragover