필드 컴포넌트 데모 - label, content, description 슬롯 구조
Field 컴포넌트는 label, content, description 슬롯을 사용하여 폼 필드를 구성합니다.
horizontal(기본값) 또는 vertical 방향을 설정할 수 있습니다.
Checkbox와 함께 사용하는 예시입니다.
| Prop | Type | Default | Description |
|---|---|---|---|
orientation |
'horizontal' | 'vertical' | 'horizontal' | 레이아웃 방향 |
class |
string | - | 추가 CSS 클래스 |
| Prop | Type | Default | Description |
|---|---|---|---|
label |
string | - | 라벨 텍스트 (slot과 함께 사용 가능) |
htmlFor |
string | - | 연결할 input 요소의 id |
size |
'default' | 'small' | 'default' | 라벨 크기 |
class |
string | - | 추가 CSS 클래스 |
| Prop | Type | Default | Description |
|---|---|---|---|
desc |
string | - | 설명 텍스트 |
size |
'lg' | 'default' | 'sm' | 'xs' | 'default' | 텍스트 크기 |
weight |
'bold' | 'medium' | 'regular' | 'regular' | 텍스트 굵기 |
class |
string | - | 추가 CSS 클래스 |