Docs
Label
Label
Renders an accessible label associated with controls.
This component uses Radix UI
import { Checkbox_Shadcn_, Label_Shadcn_ } from 'ui'
export function LabelDemo() {
return (
<div>
<div className="flex items-center space-x-2">
<Checkbox_Shadcn_ id="terms" />
<Label_Shadcn_ htmlFor="terms">Accept terms and conditions</Label_Shadcn_>
</div>
</div>
)
}
Do not use this Label component in a Form
Usage
import { Label_Shadcn_ } from '@/components/ui/label'
<Label_Shadcn_ htmlFor="email">Your email address</Label_Shadcn_>