# SDatePicker

> 자동 생성 문서 — `npm run docs:gen`. 소스: 각 컴포넌트의 Props/Handle 인터페이스 + import 의존성.

### SDatePicker

#### Props

| Prop | Type | Default | Description |
|------|------|---------|-------------|
| `value?` | `string \| null` | — | 선택 날짜 (YYYY-MM-DD) |
| `size?` | `SDatePickerSize` | `'sm'` |  |
| `placeholder?` | `string` | `'YYYY-MM-DD'` |  |
| `selectable?` | `[string, string]` | — | 선택 가능 범위 [시작, 종료] |
| `disabled?` | `boolean` | `false` |  |
| `width?` | `number \| string` | — |  |
| `name?` | `string` | — |  |
| `rules?` | `Rule[]` | — |  |
| `status?` | `SFieldStatus` | — |  |
| `label?` | `string` | — |  |
| `labelWidth?` | `number \| string` | — |  |
| `icon?` | `SIconName` | — |  |
| `iconColor?` | `SColor` | — |  |
| `labelTooltip?` | `string` | — |  |
| `labelTooltipProps?` | `Partial<STooltipProps>` | — |  |
| `addonLabel?` | `string` | — |  |
| `addonAlign?` | `SFieldAddonAlign` | — |  |
| `hint?` | `string` | — |  |
| `error?` | `boolean` | — |  |
| `errorMessage?` | `string` | — |  |
| `className?` | `string` | — |  |
| `style?` | `CSSProperties` | — |  |

#### Events

| Event | Type | Description |
|-------|------|-------------|
| `onValueChange` | `(date: string) => void` | 선택 변경 (sdUpdate) |
| `onViewChange` | `(view: { year: number; month: number }) => void` | 보이는 연·월 변경 (sdViewChange) |

## Dependencies

### Used by

 - [SKeyValueTable](../SKeyValueTable)

### Depends on

- [SCalendar](../SCalendar)
- [SField](../SField)
- [SIcon](../SIcon)

### Graph

```mermaid
graph TD;
  SDatePicker --> SCalendar
  SDatePicker --> SField
  SDatePicker --> SIcon
  SKeyValueTable --> SDatePicker
  style SDatePicker fill:#f9f,stroke:#333,stroke-width:4px
```
