Show your texts in different styles. 💅
The Text
component is a versatile React component that provides various heading styles. It leverages class-variance-authority for managing variants and allows for the customization of heading elements.
className
: Additional CSS classes to customize the component's styling.
as
: Determines the heading and text style. Default is p
. Variants include:
"h1", "h2", "h3", "h4", "h5", "h6", "p"
npx shadcn@latest add "https://retroui.dev/r/text.json"
Last Updated: 22 Oct, 2024