Strong
The Strong component is a semantic HTML element that emphasizes text with strong
importance, seriousness or urgency. It provides flexible size adjustments, optional line height trimming and text truncation capabilities while maintaining semantic meaning and accessibility.
Semantic HTML strong element
Flexible size adjustment
Optional trimming to remove line height
Supports text truncation for long texts
Architecture
Reference
-
Strong
The component renders a semantic
strong
element with configurable text styling options. It provides control over text size, line height trimming, and truncation behavior.-
Attributes
- idstring/ default: -
A unique identifier for the strong element. This can be used for linking, scripting or styling purposes.
- sizeenum/ default: md
Controls the text size of the strong element. Provides a range of predefined sizes from
xs
to6xl
for flexible typography scaling. - trimenum/ default: none
Adjusts the line height trimming behavior. Use
start
to remove space above,end
to remove space below,both
to remove space from both ends ornone
to maintain default spacing. - truncateboolean/ default: false
When set to
true
, the 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.
-
-