Skip to main content

Text

The Text component renders styled text with support for colors, sizes, weights, alignment, and advanced typography controls.

Props

Size Presets

  • "xs" - 11px
  • "sm" - 13px
  • "md" - 15px (default)
  • "lg" - 17px
  • "xl" - 20px
  • "2xl" - 24px

Color Values

  • Semantic colors: primary, secondary, tertiary, muted, default
  • Status colors: action, success, warning, error
  • Absolute colors: white, black
  • Alpha transparency: alpha-XX (e.g., alpha-50 for 50% opacity white)
  • Custom colors: Any hex color (e.g., #8B5CF6)

Examples

Basic Text

Sizes

Weights

Colors

Text Decoration

Text Transform

Line Height and Spacing

Truncation

Alignment

Semi-transparent Text

Common Patterns

Label-Value Pair

Description Text

Price Display

Status Message

Error Message