# Customization

The Calendar enables the user to render custom components instead of the default ones and, in this way, to customize most of the child Calendar components which are otherwise inaccessible.

The user can replace the following default Calendar components with custom ones:

* [`CalendarCell`](https://www.telerik.com/kendo-react-ui/components/dateinputs/calendar/custom-rendering#cells-inside-the-view)—Renders the cells inside the Calendar view.
* [`CalendarWeekCell`](https://www.telerik.com/kendo-react-ui/components/dateinputs/calendar/custom-rendering#cells-inside-the-week-column)—Renders the cells inside the Calendar week column.
* [`CalendarNavigationItem`](https://www.telerik.com/kendo-react-ui/components/dateinputs/calendar/custom-rendering#items-in-the-side-navigation)—Renders the items in the Navigation of the Calendar.
* [`CalendarHeaderTitle`](https://www.telerik.com/kendo-react-ui/components/dateinputs/calendar/custom-rendering#titles-of-current-views)—Renders the title for the current Calendar view.

## Cells inside the View

You can customize or completely replace each individual cell inside the Calendar view with a custom component by passing it to the [`cell`](https://www.telerik.com/kendo-react-ui/components/dateinputs/api/calendarprops#cell) property to the Calendar. The `cell` property accepts either a `Class` or a `Function` React Component. Both `Class` and `Function` receive relevant information about the state of the cell through the [`props of the Calendar`](https://www.telerik.com/kendo-react-ui/components/dateinputs/api/calendarcellprops).

### Modifying the Cells

To modify an individual cell inside the Calendar view, use the [`CalendarCell`](https://www.telerik.com/kendo-react-ui/components/dateinputs/api/calendarcell) component from the `@progress/kendo-date-dateinputs` package. `CalendarCell` will acquire custom behavior and will modify only some of the cells.

> For the `CalendarCell` component to work properly, pass back all properties.

The following demo shows how you can customize the color ot the `CalendarCell` to display the weekend dates in red.

[Demo Source](https://demos.telerik.com/kendo-react-ui/dateinputs/calendar/custom/cell/func/source.txt)

### Overriding the Default Properties

The `cell` property allows you to pass any `<td />` element as a `CalendarCell`. This approach is useful for gaining full control over the cell because the `CalendarCell` component will render additional elements for the default styling.

> For the custom cell to allow date selection, manually pass or handle the `onClick` event.

The following example demonstrates how you can override the CalendarCell and display a tooltip over the disabled dates.

[Demo Source](https://demos.telerik.com/kendo-react-ui/dateinputs/calendar/custom/override/func/source.txt)

## Other Child Components

Similar to the `cell` property, the Calendar allows you to modify or override other child element through its [`weekCell`](https://www.telerik.com/kendo-react-ui/components/dateinputs/api/calendarprops#weekcell), [`headerTitle`](https://www.telerik.com/kendo-react-ui/components/dateinputs/api/calendarprops#headertitle), and [`navigationItem`](https://www.telerik.com/kendo-react-ui/components/dateinputs/api/calendarprops#navigationitem) properties.

### Cells inside the Week Column

The [`CalendarWeekCell`](https://www.telerik.com/kendo-react-ui/components/dateinputs/api/calendarweekcell) component represents the week number. `CalendarWeekCell` is only visible in the `month` view of the Calendar and if the [`weekNumber`](https://www.telerik.com/kendo-react-ui/components/dateinputs/api/calendarprops#weeknumber) property is set to `true`. `CalendarWeekCell` will receive relevant information about its state through the [`CalendarWeekCellProps`](https://www.telerik.com/kendo-react-ui/components/dateinputs/api/calendarweekcellprops).

> For the `CalendarWeekCell` component to work properly, pass back all properties.

The following demo shows how you can use roman numbers in the week numbers column and customize their color with a custom css class.

[Demo Source](https://demos.telerik.com/kendo-react-ui/dateinputs/calendar/custom/weekCell/func/source.txt)

### Items in the Side Navigation

The [`CalendarNavigationItem`](https://www.telerik.com/kendo-react-ui/components/dateinputs/api/calendarnavigationitem) component represents a list item in the side navigation which provides fast navigation in the current view of the Calendar. `CalendarNavigationItem` will receive relevant information about its state through the [`CalendarNavigationItemProps`](https://www.telerik.com/kendo-react-ui/components/dateinputs/api/calendarnavigationitemprops).

> For the `CalendarNavigationItem` component to work properly, pass back all properties.

The following example demonstrates how to change the color of the CalendarNavigationItem through custom css class.

[Demo Source](https://demos.telerik.com/kendo-react-ui/dateinputs/calendar/custom/navigationItem/func/source.txt)

### Titles of Current Views

The [`CalendarHeaderTitle`](https://www.telerik.com/kendo-react-ui/components/dateinputs/api/calendarheadertitle) component represents the title of the current Calendar view and also functions as a button for changing the current view. `CalendarHeaderTitle` will receive relevant information about its state through the [`CalendarHeaderTitleProps`](https://www.telerik.com/kendo-react-ui/components/dateinputs/api/calendarheadertitleprops)

> For the `CalendarHeaderTitle` component to work properly, pass back all properties.

The following demo displays how you can add an icon to the CalendarHeaderTitle that indicates whether the current view is century.

[Demo Source](https://demos.telerik.com/kendo-react-ui/dateinputs/calendar/custom/headerTitle/func/source.txt)

## Suggested Links

* [API Reference of the Calendar](https://www.telerik.com/kendo-react-ui/components/dateinputs/api/calendar)
* [API Reference of the CalendarCell](https://www.telerik.com/kendo-react-ui/components/dateinputs/api/calendarcell)
* [API Reference of the CalendarWeekCell](https://www.telerik.com/kendo-react-ui/components/dateinputs/api/calendarweekcell)
* [API Reference of the CalendarNavigationItem](https://www.telerik.com/kendo-react-ui/components/dateinputs/api/calendarnavigationitem)
* [API Reference of the CalendarHeaderTitle](https://www.telerik.com/kendo-react-ui/components/dateinputs/api/calendarheadertitle)
* [React Date Inputs](https://www.telerik.com/kendo-react-ui/components/dateinputs)
