v
Github
🌝
View Source
Headings communicate the hierarchy of content to users and assistive technologies.
render( <StackView spacing={2}> {[1, 2, 3, 4, 5, 6].map((level) => ( <Heading key={level} level={level}> Heading {level} </Heading> ))} </StackView>)
Accepts Text props.
1 | 2 | 3 | 4 | 5 | 6
Sets the heading tag (1-6) and the respective font size corresponding to the index position (level - 1) in theme fontSizes
fontSizes