달력
달력은 날짜와 관련된 정보와 기능을 제공하는 데 사용한다.
달력은 날짜와 관련된 정보와 기능을 제공하는 데 사용한다.
사용 지침
신청 마감일·예약일 지정 등 정확한 날짜 선택이 필요한 폼에서 사용하고, 키보드 화살표 이동·선택 불가일 비활성화·범위 선택을 함께 지원해 접근성을 확보합니다.
예제
Default
Single
Range
Controlled
선택된 날짜: 2024.03.15
Controlled Range
Bottom Position
Top Position
Open State
달력이 열린 상태를 시연합니다.
Read Only
Disabled
Custom Button Text
With Default Value
With Default Range
With Disabled Dates
With Event Dates
속성
| 이름 | 타입 | 기본값 | 설명 |
|---|---|---|---|
| aria-label | string | — | Defines a string value that labels the current element. @see aria-labelledby. |
| cancelButtonText | string | 취소 | — |
| className | string | — | — |
| confirmButtonText | string | 선택 | — |
| defaultEndDate | string | — | — |
| defaultStartDate | string | — | — |
| disabled | boolean | false | — |
| disabledDates | string[] | [] | — |
| endDate | string | — | — |
| endPlaceholder | string | — | — |
| endTitle | string | — | — |
| eventDates | string[] | [] | — |
| holidays | string[] | [] | Explicit holiday dates rendered in the KRDS "day-off" red color (weekends are auto-colored). |
| id | string | — | — |
| inputId | string | — | — |
| label | string | — | — |
| mode | enum | single | — |
| monthSelectLabel | string | — | — |
| nextButtonLabel | string | — | — |
| onCancel | (() => void) | — | — |
| onChange | ((value: string) => void) | — | — |
| onClick | MouseEventHandler<HTMLDivElement> | — | — |
| onConfirm | (() => void) | — | — |
| onMonthChange | ((month: number) => void) | — | — |
| onRangeChange | ((startDate: string, endDate: string) => void) | — | — |
| onTodayClick | (() => void) | — | — |
| onYearChange | ((year: number) => void) | — | — |
| openButtonLabel | string | — | — |
| placeholder | string | — | — |
| position | enum | — | — |
| prevButtonLabel | string | — | — |
| readOnly | boolean | false | — |
| startDate | string | — | — |
| startPlaceholder | string | — | — |
| startTitle | string | — | — |
| style | CSSProperties | — | — |
| tabIndex | number | — | — |
| todayButtonText | string | 오늘 | — |
| value | string | — | — |
| yearSelectLabel | string | — | — |