Heading h4
The Heading h4 component provides a semantic HTML h4 element with customizable styling options. It supports various size configurations, line height adjustments and text truncation for creating hierarchical content structure and consistent typography.
Semantic HTML h4 element
Flexible size adjustment
Optional trimming to remove line height
Supports text truncation for long titles
Architecture
Reference
-
Heading h4
Renders an
h4heading element. It supports various text styling and handling options through its attributes, allowing for flexible typography control while maintaining semantic structure.-
Attributes
- idstring/ default: -
A unique identifier for the heading element. This can be used for linking or referencing the heading within the document.
- sizeenum/ default: xl
Determines the text size of the heading. Ranges from
xsto6xl, withxlas the default size. - trimenum/ default: none
Controls the removal of excess line height at the start and/or end of the heading. Use
startto trim top spacing,endfor bottom spacing orbothfor both. - 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.
-
-