Skip to content

Browse components

← All components

Label

Form label styled for this design system.

Install
npx shadcn@latest add https://ui.anuragroy.dev/r/label.json

Preview

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.json

GitHub fallback if the website is down:

Terminal
npx shadcn@latest add https://raw.githubusercontent.com/anurag-roy/ui.anuragroy.dev/main/public/r/label.json

Usage

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.

PropTypeDefault
htmlForstring—