달력
달력은 날짜와 관련된 정보와 기능을 제공하는 데 사용한다.
사용 지침
신청 마감일·예약일 지정 등 정확한 날짜 선택이 필요한 폼에서 사용하고, 키보드 화살표 이동·선택 불가일 비활성화·범위 선택을 함께 지원해 접근성을 확보합니다.
예제
기본
단일
범위
제어 상태
선택된 날짜: 2024.03.15
제어 상태 범위
하단 위치
상단 위치
열린 상태
달력이 열린 상태를 시연합니다.
읽기 전용
비활성화
커스텀 버튼 텍스트
기본값 포함
기본 범위 포함
비활성화 날짜 포함
이벤트 날짜 포함
속성
| 이름 | 타입 | 기본값 | 설명 |
|---|---|---|---|
| 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 (Sundays 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 | 연도 선택 | — |