Calendar
Base component for custom date pickers
Source
LLM docs
Docs
PackageIcon
Usage
Use the Calendar component to create custom date pickers if the DatePicker
component does not meet your requirements. Calendar supports all DatePicker
props and some additional props that are listed in the props table – check it out to learn about all component features.
By default, Calendar works the same way as the DatePicker component but does not
include any logic for date selection:
| Mo | Tu | We | Th | Fr | Sa | Su |
|---|---|---|---|---|---|---|
Custom date pickers
Use Calendar as a base for custom date pickers. For example, you can create a date picker
that allows users to pick three or fewer dates:
| Mo | Tu | We | Th | Fr | Sa | Su |
|---|---|---|---|---|---|---|
Another custom date picker example – week picker:
| Mo | Tu | We | Th | Fr | Sa | Su |
|---|---|---|---|---|---|---|
Full width
Set the fullWidth prop to make the calendar stretch to fill 100% of its parent container width:
| Mo | Tu | We | Th | Fr | Sa | Su |
|---|---|---|---|---|---|---|
Static prop
Set the static prop to display a calendar that users cannot interact with.
This is useful when you want to display data in a calendar view but do
not want it to be interactive.
| Mo | Tu | We | Th | Fr | Sa | Su |
|---|---|---|---|---|---|---|
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 | 1 |