You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DayPicker renders the calendar with this component structure:
39
+
40
+
```text
41
+
Root
42
+
├── Months
43
+
│ ├── Nav
44
+
│ │ ├── PreviousMonthButton
45
+
│ │ │ └── Chevron
46
+
│ │ └── NextMonthButton
47
+
│ │ └── Chevron
48
+
│ └── Month
49
+
│ ├── MonthCaption
50
+
│ │ ├── CaptionLabel
51
+
│ │ └── DropdownNav
52
+
│ │ ├── MonthsDropdown
53
+
│ │ │ └── Dropdown
54
+
│ │ │ └── DropdownRoot
55
+
│ │ │ ├── Select
56
+
│ │ │ │ └── Option
57
+
│ │ │ └── CaptionLabel
58
+
│ │ │ └── Chevron
59
+
│ │ └── YearsDropdown
60
+
│ │ └── Dropdown
61
+
│ │ └── DropdownRoot
62
+
│ │ ├── Select
63
+
│ │ │ └── Option
64
+
│ │ └── CaptionLabel
65
+
│ │ └── Chevron
66
+
│ └── MonthGrid
67
+
│ ├── Weekdays
68
+
│ │ ├── WeekNumberHeader
69
+
│ │ └── Weekday
70
+
│ └── Weeks
71
+
│ └── Week
72
+
│ ├── WeekNumber
73
+
│ └── Day
74
+
│ └── DayButton
75
+
└── Footer
76
+
```
77
+
78
+
Some components are conditional:
79
+
80
+
-`Footer` renders only when the `footer` prop is set.
81
+
- Week-number elements render only with `showWeekNumber`.
82
+
- Dropdown elements render only with a dropdown `captionLayout`.
83
+
- Navigation placement depends on `navLayout`: the hierarchy above shows the default placement; with `navLayout="around"`, navigation buttons render beside the month caption, and with `navLayout="after"`, the navigation bar renders after the caption in the last month.
0 commit comments