Components

Label

사용 예시

연결하기

htmlFor와 id를 같은 값으로 맞추면 라벨을 눌렀을 때 Input으로 포커스가 이동해요.

tsx
<div className="flex flex-col gap-tight">  <Label htmlFor="nickname">닉네임</Label>  <Input id="nickname" value={nickname} onChange={e => setNickname(e.target.value)} /></div><div className="flex items-center gap-2">  <Label htmlFor="nickname-row">닉네임</Label>  <Input id="nickname-row" value={nickname} onChange={e => setNickname(e.target.value)} className="w-40" /></div>
tsx
<Field layout="inline">  <Checkbox />  <FieldLabel>약관 동의</FieldLabel></Field>
tsx
<Checkbox /><Label>약관 동의</Label>

명세

이름
이름값기본
htmlForstring-
연결할 컨트롤의 id예요.
classNamestring-