Basic usage
Props
't1' | 't2' | 't3' | 't4' | 'small' | 'medium' | 'large'
default:"'t2'"
Visual size of the headline. Use
't1' | 't2' | 't3' | 't4' for recommended sizes.'regular' | 'medium'
default:"'medium'"
Font weight of the headline.
'left' | 'center' | 'right'
default:"'left'"
Text alignment.
boolean
default:"false"
Whether to truncate text with ellipsis when it overflows.
'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6'
default:"'h2'"
The semantic HTML element to render.
string
Additional CSS classes to apply.
ReactNode
The headline content.
Sizes
Use thet1 through t4 sizes for consistent typography hierarchy.
Semantic HTML
Separate visual presentation from semantic meaning using theas prop.
Font weights
Text alignment
Truncated text
Prevent long headlines from breaking layout.Page header
Card title
Accessibility
- Use semantic heading levels (
h1throughh6) in logical order - Don’t skip heading levels (e.g., don’t jump from
h2toh4) - Use the
asprop to maintain semantic structure while achieving desired visual hierarchy - Ensure sufficient color contrast for readability
Related components
- Text - For body text and inline content