TrademarkTrademarkDocs
Ctrl k
Search docs...
Components

Heading

Updated: June 30, 2026
View on GitHub
The Heading component is used for displaying titles and section headings throughout your application. It provides consistent typography with various sizes, weights, and styles to establish visual hierarchy. Heading components can be styled using the variant prop which combines font type, weight, and size. You can override the default font-family that comes with the variant with the family prop. You can override the default font-weight inside a variant with the weight prop. Headings can be styled with different colors using the onBackground or onSolid props. Control heading visibility with the opacity prop, accepting values from 0 to 100. Control the text alignment of headings using the align prop. Control how text wraps with the wrap prop. By default, the wrap prop is set to balance. Headings support various spacing props for margin and padding. Use the as prop to control the underlying HTML element while maintaining consistent styling.
Prop
Type
Default
wrap
How lines break. "balance" evens them out, which is what a headline wants.
CSSProperties["textWrap"]balance
…and every FlexProps propinherited—
…and every TextProps propinherited—
as
h1h2h3h4h5h6
h1
variant
TextVariant—
size
xssmlxl
m
weight
defaultstrong
strong
family
displayheadingbodylabelcode
—
onBackground
`${ColorScheme}-${ColorWeight}`—
onSolid
`${ColorScheme}-${ColorWeight}`—
opacity
Opacity100
align
leftcenterrightjustify
—
truncate
boolean—
padding
SpacingTokennumber
—
paddingX
SpacingTokennumber
—
paddingY
SpacingTokennumber
—
paddingLeft
SpacingTokennumber
—
paddingRight
SpacingTokennumber
—
paddingTop
SpacingTokennumber
—
paddingBottom
SpacingTokennumber
—
margin
SpacingTokennumber
—
marginX
SpacingTokennumber
—
marginY
SpacingTokennumber
—
marginLeft
SpacingTokennumber
—
marginRight
SpacingTokennumber
—
marginTop
SpacingTokennumber
—
marginBottom
SpacingTokennumber
—
children
React.ReactNode—
className
string—
style
React.CSSProperties—
…and every React.HTMLAttributes propinherited—
Edit this page on GitHub
TrademarkTrademark
Built with curiosity by Lorant One and the Design Engineers Club