dixant

Typography

Text

About

A polymorphic text component with semantic heading/body/caption variants, weight, alignment, truncation and line-clamp options for consistent typographic styles.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Typography to your project and fits it to your theme.

Code

How Typography is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { Typography } from "@/components/ui/typography";

export default function TypographyMaxLinesDemo() {
  return (
    <Typography maxLines={2} style={{ maxWidth: 240 }}>
      Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod
      tempor incididunt ut labore.
    </Typography>
  );
}

More by dixant

View all
  • Tooltip

    Tooltip

    1
  • Spinner

    Spinner

    1
  • Select

    Select

  • Tatva Input

    Tatva Input

  • Avatar

    Avatar

  • Divider

    Divider

  • Stack

    Stack

  • Alert

    Alert

More in Text

View all
  • Astryx Chat Tokenized Text

    Astryx Chat Tokenized Text

    9
  • Text Reveal

    Text Reveal

    41
  • Apple Hello Effect

    Apple Hello Effect

    682
  • Scroll Fill Headline

    Scroll Fill Headline

    57
  • Shimmering Text

    Shimmering Text

    4
  • Blur Reveal

    Blur Reveal

    390
  • Toolbar

    Toolbar

    55
  • Liquid Text

    Liquid Text

    260