Skip to main content

Heading

TSX
<Heading
headingType="h1"
fontSize="24px"
fontWeight={700}
fontFamily={{ label: 'Arial', value: 'arial,helvetica,sans-serif' }}
color="#111111"
textAlign="left"
lineHeight="120%"
>
Welcome
</Heading>
PropTypeDefault
headingType"h1" | "h2" | "h3" | "h4""h1"
textstring"Heading" (or use children)
fontSizestring"22px"
fontWeightnumber400
fontFamily{ label: string, value: string }
colorstring"#000000"
textAlign"left" | "center" | "right" | "justify""left"
lineHeightstring"140%"

<Heading> also accepts a level prop as a shorthand for headingType (<Heading level="h1">). It works at runtime — internally aliased to the same field — but isn't on HeadingProps, so strict TypeScript rejects it. Use headingType in typed code.