Skip to content

Heading

The Heading component will render an html h2 tag without any default styling. Other heading level elements h1-h6 are available through use of the as prop (see System Props for additional explanation). Please reference the w3 recommendations for headings to ensure your headings provide an accessible experience for screen reader users.

Attention: Make sure to include a valid heading element to render a Heading component other than h2 (<Heading as="h1">H1 Element</Heading>).

Default example

H2 heading with fontSize=1

System props

Heading components get TYPOGRAPHY and COMMON system props. Read our System Props doc page for a full list of available props.

Component props

Prop nameTypeDescription
asString or React elementsets the HTML tag for the component
Edit this page on GitHub
3 contributorsBinaryMuseacknosynemplums
Last edited by BinaryMuse on April 14, 2020