Dinachi

Text

A typography component for headings, paragraphs, and text styles with semantic HTML output.

View Source

#Installation

npx @dinachi/cli@latest add text

#Usage

tsx
import { Text } from '@/components/ui/text'

#Examples

#API Reference

PropTypeDefaultDescription
variant'h1' | 'h2' | 'h3' | 'h4' | 'p' | 'large' | 'small' | 'lead' | 'muted' | 'blockquote' | 'code' | 'span''p'The typography style variant. Determines both visual styling and the rendered HTML element.
asReact.ElementTypeOverride the default HTML element. For example, render an h2-styled element as an <h3>.
classNamestringAdditional CSS classes to apply.
childrenReact.ReactNodeThe text content to render.