Heading h3
The Heading h3 component provides a semantic HTML h3 element with configurable styling options. It supports various size options, line height trimming capabilities and text truncation features, making it suitable for creating hierarchical and visually consistent headings in your content.
Semantic HTML h3 element
Flexible size adjustment
Optional trimming to remove line height
Supports text truncation for long titles
Architecture
Reference
-
Heading h3
Renders an
h3heading element with configurable styling options. It provides control over the heading's appearance and behavior through various attributes.-
Attributes
- idstring/ default: -
A unique identifier for the heading element. This can be used for linking, scripting or styling purposes.
- sizeenum/ default: 2xl
Controls the text size of the heading. Provides a range of predefined sizes from
xsto6xl, with2xlas the default size. - trimenum/ default: none
Adjusts the line height trimming of the heading. Use
startto trim top spacing,endfor bottom spacing,bothfor both ornoneto maintain default spacing. - truncateboolean/ default: false
When set to
true, the heading text will be truncated with an ellipsis if it exceeds the container width. Alternatively, you can specify a number to limit the visible lines before truncation occurs.
-
-