Selection
DatePicker
Calendar + Popover 조합 — 트리거 클릭 시 캘린더 팝오버.
예제
설치 / Import
import { DatePicker } from '@baneung-pack/ui';import { DatePicker } from '@baneung-pack/ui/date-picker';서브패스 import는 트리쉐이킹 친화 — 사용하지 않는 다른 컴포넌트는 번들에 포함되지 않습니다.
API
| Property | Description | Type | Default |
|---|---|---|---|
value | controlled 값 | Date | — |
defaultValue | uncontrolled 초기값 | Date | — |
onValueChange | 변경 콜백 | (value: Date | undefined) => void | — |
placeholder | placeholder | string | '날짜 선택' |
formatDate | 날짜 포맷터 | (date: Date) => string | — |
disabledDates | 비활성 날짜 | Date[] | ((date: Date) => boolean) | — |
disabled | 비활성 | boolean | false |