CalendarDay API
Props, callbacks and methods. Select an underlined type to explore its fields, allowed values and callback arguments.
CalendarDay18 props4 callbacks0 methods
Props18
| Name | Type | Description |
|---|---|---|
dateRequired |
| ISO date represented by this day button. |
labelRequired | string | Label content or accessible name for the component, as rendered by this control. |
classNameOptional | string | undefined | Additional CSS classes applied to the component root. |
outsideRequired | boolean | Marks a day belonging to a month outside the currently displayed month. |
hiddenRequired | boolean | Omits the day from the visible calendar while retaining its layout cell. |
disabledRequired | boolean | Disables user interaction with the control. |
focusedRequired | boolean | Marks the item or date that currently has keyboard focus. |
selectedRequired | boolean | Selected value or selected-state flag; the declared type identifies which representation the control uses. |
previewedRequired | boolean | Marks a day included in the current selection preview. |
previewInvalidOptional | boolean | undefined | Marks the preview as unavailable without changing the committed selection. |
previewDescriptionIdOptional | string | undefined | ID of the accessible explanation associated with invalid preview dates. |
rangeStartRequired | boolean | Marks the first day of the selected range. |
rangeEndRequired | boolean | Marks the last day of the selected range. |
previewStartRequired | boolean | Marks the first day of the preview range. |
previewEndRequired | boolean | Marks the last day of the preview range. |
todayRequired | boolean | Marks the day corresponding to Today. |
contentOptional |
| Custom content rendered by the item, tooltip or calendar day. |
setRefRequired |
| Registers the rendered day button for the given date. |
Events and callbacks4
| Name | Type | Description |
|---|---|---|
onFocusRequired |
| Called when focus moves to an item or control; the signature identifies the focused value. |
onPreviewRequired |
| Updates the date preview; undefined clears it. |
onKeyDownRequired |
| Handles keyboard input; receives the keyboard event and any item/date context shown in the signature. |
onSelectRequired |
| Called when the user selects an item. The signature identifies the selected value and any additional context. |
Methods0
No component-specific imperative methods. Use props and callbacks to control this component.