Calendar API
API reference docs for theCalendar
component. For examples and details on the usage of this component, visit the component demo page.
Props
Prop | Type | Description | Default |
---|---|---|---|
|
| Calendar copy labels for accessibility, tooltips and localization. Use this to provide translated or custom text for various calendar elements. | _ |
|
| Aria label and tooltip content for the days that are not available. |
|
|
| Aria label and tooltip content for the months that are not available. |
|
|
| Aria label and tooltip content for the button that navigates to today. |
|
|
| Aria label and tooltip content for the button that navigates to the next month. |
|
|
| Aria label and tooltip content for the button that navigates to the next year. |
|
|
| Aria label and tooltip content for the button that navigates to the previous month. |
|
|
| Aria label and tooltip content for the button that navigates to the previous year. |
|
|
| Determines whether Calendar has month grid or not. |
|
|
| A callback function invoked for each date in the calendar. If it returns | _ |
|
| Locale code (ISO 639-1) for date localization. |
|
|
| The maximum allowed date that a user may select. | _ |
|
| The minimum allowed date that a user may select. | _ |
|
| Handler that is called when the value changes. | _ |
|
| Handler that is called when the currently visible month changes. | _ |
|
| Handler that is called when the currently visible year changes. | _ |
|
| The size of the calendar. |
|
|
| The timezone modifier for the calendar to consider the "today" date. When a consumer passes a valid timezone string, "today" (which was originally based on the system time) will be offset according to the specified timezone. |
|
|
| The current value (controlled). | _ |
|
| Controls the currently focused date within the calendar. | _ |
|
| The index of the first day of the week. Accepts a value from | _ |