--- title: Text description: Show your texts in different styles. 💅 lastUpdated: 09 Sep, 2025 links: source: https://github.com/logging-studio/RetroUI/blob/main/components/retroui/Text.tsx --- ## Headings 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.


#### Props `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"`

## Installation #### 1. Install dependencies: ```sh npm install class-variance-authority ```
#### 2. Copy the code 👇 into your project:


## Paragraph