컨트롤과 연관된 접근 가능한 레이블을 렌더링합니다.
<div> <div className="flex items-center space-x-2"> <input id="terms" className="peer" type="checkbox" /> <Label htmlFor="terms">Accept terms and conditions</Label> </div> </div>
<div> <div className="flex items-center space-x-2"> <input id="terms" className="peer" type="checkbox" disabled /> <Label htmlFor="terms">Accept terms and conditions</Label> </div> </div>
<div className="grid w-full max-w-sm items-center gap-1.5"> <Label htmlFor="email">Email</Label> <Input type="email" id="email" placeholder="Email" /> </div>
Renders an accessible label associated with controls.