39 lines
736 B
Plaintext
39 lines
736 B
Plaintext
---
|
|
title: Label
|
|
description: A universal component for labeling various inputs.
|
|
lastUpdated: 09 Sep, 2025
|
|
links:
|
|
source: https://github.com/logging-studio/RetroUI/blob/main/components/retroui/Label.tsx
|
|
---
|
|
|
|
<ComponentShowcase name="label-style-default" />
|
|
|
|
<br />
|
|
<br />
|
|
|
|
<ComponentInstall>
|
|
<ComponentInstall.Cli npmCommand="npx shadcn@latest add @retroui/label" />
|
|
<ComponentInstall.Manual>
|
|
#### 1. Install dependencies:
|
|
|
|
```sh
|
|
npm install @radix-ui/react-label
|
|
```
|
|
|
|
<br />
|
|
#### 2. Copy the code 👇 into your project:
|
|
|
|
<ComponentSource name="label" />
|
|
</ComponentInstall.Manual>
|
|
|
|
</ComponentInstall>
|
|
|
|
<br />
|
|
<br />
|
|
|
|
## Usage
|
|
|
|
```tsx
|
|
import { Label } from "@/components/retroui/Label";
|
|
```
|