Calendar

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

28293031123
45678910
11121314151617
18192021222324
25262728293031

Usage

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

Change Size

28293031123
45678910
11121314151617
18192021222324
25262728293031
28293031123
45678910
11121314151617
18192021222324
25262728293031
28293031123
45678910
11121314151617
18192021222324
25262728293031
28293031123
45678910
11121314151617
18192021222324
25262728293031
28293031123
45678910
11121314151617
18192021222324
25262728293031

Change Color Scheme

28293031123
45678910
11121314151617
18192021222324
25262728293031
28293031123
45678910
11121314151617
18192021222324
25262728293031

Change Shape

28293031123
45678910
11121314151617
18192021222324
25262728293031
28293031123
45678910
11121314151617
18192021222324
25262728293031
28293031123
45678910
11121314151617
18192021222324
25262728293031

Change Format

To change the format, set the format object.

28293031123
45678910
11121314151617
18192021222324
25262728293031

Set Default Date

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

28293031123
45678910
11121314151617
18192021222324
25262728293031

Set Default Month

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

2829301234
567891011
12131415161718
19202122232425
2627282930311

Set Minimum Date

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

28293031123
45678910
11121314151617
18192021222324
25262728293031

Set Maximum Date

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

28293031123
45678910
11121314151617
18192021222324
25262728293031

Disable

To disable the calendar, set disabled to true.

28293031123
45678910
11121314151617
18192021222324
25262728293031

Disable Today Highlighting

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

28293031123
45678910
11121314151617
18192021222324
25262728293031

Disable Specific Days of the Week

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

28293031123
45678910
11121314151617
18192021222324
25262728293031

Allow Multiple Selection

To allow multiple date selection, set multiple to true.

28293031123
45678910
11121314151617
18192021222324
25262728293031

Set Maximum for Multiple Selection

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

28293031123
45678910
11121314151617
18192021222324
25262728293031

Enable Range Selection

To enable range selection, set range to true.

28293031123
45678910
11121314151617
18192021222324
25262728293031

Change Start Day of Week

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

28293031123
45678910
11121314151617
18192021222324
25262728293031
2930311234
567891011
12131415161718
19202122232425
2627282930311

Change Weekend Days

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

28293031123
45678910
11121314151617
18192021222324
25262728293031

Set Holidays

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

28293031123
45678910
11121314151617
18192021222324
25262728293031

Hide Outside the Current Month

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

28293031123
45678910
11121314151617
18192021222324
25262728293031

Customize Components

You can customize components to change the display.

28293031123
45678910
11121314151617
18192021222324
25262728293031
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

Control

28293031123
45678910
11121314151617
18192021222324
25262728293031

Props

Accessibility

Currently, this section is being updated due to the migration of v2.

2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd
2nd