Skip to main content

Subtitle

The Text.Subtitle component renders an h6 tag by default with font weight of normal. You can override the tag by passing an as property.

<Text.Subtitle>
I'm an H6 subtitle and I'm 16px font-size.
</Text.Subtitle>

Will render as

I'm an H6 subtitle and I'm 16px font-size.

Variations

The Heading component accepts weight property:

PropertyValue
weightregular | bold | black
<Text.Subtitle weight={weight}>Subtitle</Text.Subtitle>

Regular

Bold

Black

Subtitle
Subtitle
Subtitle