About
Provides a text label for form elements to improve clarity and accessibility.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Label to your project and fits it to your theme.
Code
How Label is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
'use client';
import { useId } from 'react';
import { Label } from '@/components/ui/label';
import { Checkbox } from '@/components/ui/checkbox';
export default function LabelDemo() {
const id1 = useId();
return (
<div>
<div className="flex items-center space-x-2">
<Checkbox id="terms" />
<Label htmlFor="terms">Accept terms and conditions</Label>
</div>
</div>
);
}
















