Skip to content

Text

The Text component is a versatile typographic element that allows rendering text in multiple semantic HTML tags while applying styles, truncation, and custom variants.

  • Flexible semantic tags: h1, h2, p, span, small, and more.
  • Styling: Inline styles, color, font weight, and custom CSS.
  • Line truncation: Limit displayed lines with the lines prop.

Main Title

Subtitle Bold

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud.

Italic Span Text Small caption or note
PropTypeDefaultDescription
asstring"span"The HTML element to render (h1, h2, p, etc.)
linesnumberundefinedNumber of lines to display before truncating text
stylestringundefinedInline styles applied to the text