No results found

Calendar

A control that enables users to select a date from a calendar.

January 2025
SuMoTuWeThFrSa

Selected date:

Features

API Reference

Root

The main container for the calendar component.

Props

PropTypeDefaultDescription
locale'en''en'The locale for the calendar
defaultDatestringCurrent dateInitial date in 'YYYY-MM-DD' format
showWeekNumberbooleanfalseShow week numbers
fullWeeksbooleanfalseShow complete weeks including days from adjacent months
datestring-Controlled date value
showDaysOfWeekbooleantrueShow weekday headers
onDateChange$QRL<(date: string) => void>-Callback when date changes

Grid

The calendar grid component displaying dates.

Props

PropTypeDescription
buttonPropsPropsOf<'button'>Props passed to date buttons
onDateChange$QRL<(date: string) => void>Callback when date changes

Container for navigation controls and title.

Previous

Previous month navigation button.

Props

PropTypeDescription
iconComponent<PropsOf<'svg'>>Custom icon component

Next

Next month navigation button.

Props

PropTypeDescription
iconComponent<PropsOf<'svg'>>Custom icon component

Title

Displays current month and year.

Keyboard Navigation

KeyAction
ArrowLeftPrevious day
ArrowRightNext day
ArrowUpPrevious week
ArrowDownNext week
HomeFirst day of week
EndLast day of week
PageUpPrevious month
PageDownNext month
Enter/SpaceSelect date