Forms
Navigation & layout
Data display & feedback
Date & time
Browse components
← All components
Label
Form label styled for this design system.
Install
npx shadcn@latest add https://ui.anuragroy.dev/r/label.jsonPreview
Loading preview…
Installation
Add the component from this site. The shadcn CLI fetches the registry JSON over HTTPS — no named registry submission required.
Terminal
npx shadcn@latest add https://ui.anuragroy.dev/r/label.jsonGitHub fallback if the website is down:
Terminal
npx shadcn@latest add https://raw.githubusercontent.com/anurag-roy/ui.anuragroy.dev/main/public/r/label.jsonUsage
Import paths follow your components.json aliases. After install, the default path is @/components/ui/label.
Import
import { Label } from "@/components/ui/label"example.tsx
import { Label } from "@/components/ui/label"export function Example() { return <Label htmlFor="email">Email</Label>}API Reference
Label
Native `label` with muted, compact typography.
| Prop | Type | Default |
|---|---|---|
| htmlFor | string | — |