Typography component with semantic variants.
import { Text } from "@/components/ui";Body large text
Body medium text — the default
Body small text
Caption text — secondary information
Overline text
const x = 42;
Primary
Muted
Destructive
<Text>This is body text</Text>Typography variants
<div className="space-y-2"> <Text variant="h1">Heading 1</Text> <Text variant="h2">Heading 2</Text> <Text variant="h3">Heading 3</Text> <Text variant="h4">Heading 4</Text> <Text variant="body">Body text</Text> <Text variant="small">Small text</Text> <Text variant="muted">Muted text</Text></div>Different text colors
<div className="space-y-1"> <Text color="default">Default color</Text> <Text color="muted">Muted color</Text> <Text color="primary">Primary color</Text> <Text color="destructive">Destructive color</Text></div>Render as specific HTML elements
<Text variant="h1" as="h2"> Styled as h1, rendered as h2</Text>Configure your app with the features you need and download production-ready code.
Start Configuring