Calendar

Calendar is a component for displaying or selecting dates in a calendar.

August 2026
2627282930311
2345678
9101112131415
16171819202122
23242526272829
303112345

Usage

import { Calendar } from "@yamada-ui/react"
<Calendar.Root />

Change Size

August 2026
2627282930311
2345678
9101112131415
16171819202122
23242526272829
303112345
August 2026
2627282930311
2345678
9101112131415
16171819202122
23242526272829
303112345
August 2026
2627282930311
2345678
9101112131415
16171819202122
23242526272829
303112345
August 2026
2627282930311
2345678
9101112131415
16171819202122
23242526272829
303112345
August 2026
2627282930311
2345678
9101112131415
16171819202122
23242526272829
303112345

Change Color Scheme

August 2026
2627282930311
2345678
9101112131415
16171819202122
23242526272829
303112345
August 2026
2627282930311
2345678
9101112131415
16171819202122
23242526272829
303112345

Change Shape

August 2026
2627282930311
2345678
9101112131415
16171819202122
23242526272829
303112345
August 2026
2627282930311
2345678
9101112131415
16171819202122
23242526272829
303112345
August 2026
2627282930311
2345678
9101112131415
16171819202122
23242526272829
303112345

Change Format

To change the format, set the format object.

August 2026
2627282930311
2345678
9101112131415
16171819202122
23242526272829
303112345

Set Default Date

To set a default date, set defaultValue to a Date.

August 2026
2627282930311
2345678
9101112131415
16171819202122
23242526272829
303112345

Set Default Month

To set a default month, set defaultMonth to a Date.

October 2025
2829301234
567891011
12131415161718
19202122232425
2627282930311

Set Minimum Date

To set the minimum selectable date, set minDate to a Date.

August 2026
2627282930311
2345678
9101112131415
16171819202122
23242526272829
303112345

Set Maximum Date

To set the maximum selectable date, set maxDate to a Date.

August 2026
2627282930311
2345678
9101112131415
16171819202122
23242526272829
303112345

Disable

To disable the calendar, set disabled to true.

August 2026
2627282930311
2345678
9101112131415
16171819202122
23242526272829
303112345

Disable Today Highlighting

To disable highlighting of today's date, set today to false.

August 2026
2627282930311
2345678
9101112131415
16171819202122
23242526272829
303112345

Disable Specific Days of the Week

To disable specific days of the week, set excludeDate to a condition function.

August 2026
2627282930311
2345678
9101112131415
16171819202122
23242526272829
303112345

Allow Multiple Selection

To allow multiple date selection, set multiple to true.

August 2026
2627282930311
2345678
9101112131415
16171819202122
23242526272829
303112345

Set Maximum for Multiple Selection

To set the maximum number of selectable dates in multiple selection, set max to a number.

August 2026
2627282930311
2345678
9101112131415
16171819202122
23242526272829
303112345

Enable Range Selection

To enable range selection, set range to true.

August 2026
2627282930311
2345678
9101112131415
16171819202122
23242526272829
303112345

Change Start Day of Week

To change the start day of the week, set startDayOfWeek to "sunday" or "monday".

August 2026
2627282930311
2345678
9101112131415
16171819202122
23242526272829
303112345
August 2026
272829303112
3456789
10111213141516
17181920212223
24252627282930
31123456

Change Weekend Days

To change which days are treated as weekends, set weekendDays to an array of days(numbers).

August 2026
2627282930311
2345678
9101112131415
16171819202122
23242526272829
303112345

Set Holidays

To set holidays, set holidays to an array of Dates.

August 2026
2627282930311
2345678
9101112131415
16171819202122
23242526272829
303112345

Hide Outside the Current Month

To hide dates outside the current month, set styles using dayProps.

August 2026
2627282930311
2345678
9101112131415
16171819202122
23242526272829
303112345

Customize Components

You can customize components to change the display.

2026/08
August 2026
2627282930311
2345678
9101112131415
16171819202122
23242526272829
303112345
August 2026
26
27
28
29
30
31
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
1
2
3
4
5

Control

August 2026
2627282930311
2345678
9101112131415
16171819202122
23242526272829
303112345

Props

Accessibility

Keyboard Navigation

KeyDescriptionState
ArrowUpMoves focus to the date above.-
ArrowDownMoves focus to the date below.-
ArrowLeftMoves focus to the date to the left. If it's the first date, moves to the last date of the previous month.-
ArrowRightMoves focus to the date to the right. If it's the last date, moves to the first date of the next month.-
HomeMoves focus to the first date in the same week.-
EndMoves focus to the last date in the same week.-
PageUpMoves focus to the same date in the previous month. If that date doesn't exist, moves to an enabled date in that month.-
Shift + PageUpMoves focus to the same date in the previous year. If that date doesn't exist, moves to an enabled date in that month.-
PageDownMoves focus to the same date in the next month. If that date doesn't exist, moves to an enabled date in that month.-
Shift + PageDownMoves focus to the same date in the next year. If that date doesn't exist, moves to an enabled date in that month.-
Space, EnterToggles the selection state of the focused date.-

ARIA Roles and Attributes

ElementRoles and AttributesUsage
div.ui-calendar__select--years [role="combobox"]aria-labelSets "Choose the year".
div.ui-calendar__select--months [role="combobox"]aria-labelSets "Choose the month".
div.ui-calendar__control [role="status"]role="status"Indicates that it is a status.
aria-live="polite"Indicates that it may be updated outside of focus.
table.ui-calendar__monthrole="grid"Indicates that it is a grid.
aria-labelSets the displayed month and year, like "February 2026".
aria-multiselectableSets "true" if multiple selection or range selection is enabled.
button.ui-calendar__button--prevaria-labelSets "Go to the previous month".
button.ui-calendar__button--nextaria-labelSets "Go to the next month".
td.ui-calendar__cell--dayaria-labelSets the date, like "Thursday, February 5, 2026". If today, sets "Today, Thursday, February 5, 2026".
aria-disabledSets "true" if the date is disabled.
aria-selectedSets "true" if the date is selected.

Similar Components

NativeTable

NativeTable is a component for efficiently organizing and displaying data.

Stat

Stat is used to display numbers or data within a box.

Table

Table is a table component equipped with column sorting, row selection, and click event features.

Uses Components & Hooks

Used By Components & Hooks