Skip to Content
EnComponentsTitle

Title

Headings and subtitles.

Playground

Props

Examples

Titles

Title 1

Title 2

Title 3

Title 4

Title 5

Title 6

Subtitles

Subtitle 1

Subtitle 2

Subtitle 3

Subtitle 4

Subtitle 5

Subtitle 6

Title and Subtitle

Note: It is recommended to use subtitles 2 levels below the title.

Title 1

Subtitle 3

Title 2

Subtitle 4

Title 3

Subtitle 5

Title 4

Subtitle 6

Props

PropTypeDefaultDescription
childrenReactNode-The text content.
classNamestring-Additional CSS classes.
size1 | 2 | 3 | 4 | 5 | 6-The visual size of the title (1 is largest).
spacedbooleanfalseAdds bottom margin to separate from subtitle.
subtitlebooleanfalseRenders as a subtitle (default h2, different style).

See also

Last updated on