Usage
Use Title component to render h1-h6 headings with Mantine theme styles.
By default, Title
has no margins and paddings.
You can change font-size
, font-weight
and line-height
per heading with theme.headings.
Set order
prop to render a specific element (h1-h6), default order is 1
:
This is h1 title
This is h2 title
This is h3 title
This is h4 title
This is h5 title
This is h6 title
Size
You can change Title size
independent of its order
:
- If you set size to
h1
-h6
, then component will add correspondingfont-size
andline-height
from the theme - If you set size to any other value, then
line-height
will be calculated based onorder
–size
will impact onlyfont-size