Skip to main content
The Headline component provides semantic heading elements with consistent styling and flexible size options. It supports different heading levels while maintaining visual hierarchy.

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 the t1 through t4 sizes for consistent typography hierarchy.

Semantic HTML

Separate visual presentation from semantic meaning using the as prop.

Font weights

Text alignment

Truncated text

Prevent long headlines from breaking layout.

Card title

Accessibility

  • Use semantic heading levels (h1 through h6) in logical order
  • Don’t skip heading levels (e.g., don’t jump from h2 to h4)
  • Use the as prop to maintain semantic structure while achieving desired visual hierarchy
  • Ensure sufficient color contrast for readability
  • Text - For body text and inline content