Type Alias: CustomComponents
CustomComponents = {
Button
: typeofcomponents.Button
;CaptionLabel
: typeofCaptionLabel
;Chevron
: typeofChevron
;Day
: typeofDay
;DayButton
: typeofDayButton
;Dropdown
: typeofDropdown
;DropdownNav
: typeofDropdownNav
;Footer
: typeofFooter
;Month
: typeofMonth
;MonthCaption
: typeofMonthCaption
;MonthGrid
: typeofMonthGrid
;Months
: typeofMonths
;MonthsDropdown
: typeofMonthsDropdown
;Nav
: typeofNav
;NextMonthButton
: typeofNextMonthButton
;Option
: typeofOption
;PreviousMonthButton
: typeofPreviousMonthButton
;Root
: typeofRoot
;Select
: typeofSelect
;Week
: typeofWeek
;Weekday
: typeofWeekday
;Weekdays
: typeofWeekdays
;WeekNumber
: typeofWeekNumber
;WeekNumberHeader
: typeofWeekNumberHeader
;Weeks
: typeofWeeks
;YearsDropdown
: typeofYearsDropdown
; }
Defined in: src/types/shared.ts:46
The components that can be changed using the components
prop.
See
https://daypicker.dev/guides/custom-components
Properties
Button
Button: typeof
components.Button
Defined in: src/types/shared.ts:53
Render any button element in DayPicker.
Deprecated
Use CustomComponents.NextMonthButton or CustomComponents.PreviousMonthButton instead.
CaptionLabel
CaptionLabel: typeof
CaptionLabel
Defined in: src/types/shared.ts:57
Render the caption label of the month grid.
Chevron
Chevron: typeof
Chevron
Defined in: src/types/shared.ts:55
Render the chevron icon used in the navigation buttons and dropdowns.
Day
Day: typeof
Day
Defined in: src/types/shared.ts:59
Render the day cell in the month grid.
DayButton
DayButton: typeof
DayButton
Defined in: src/types/shared.ts:61
Render the button containing the day in the day cell.
Dropdown
Dropdown: typeof
Dropdown
Defined in: src/types/shared.ts:63
Render the dropdown element to select years and months.
DropdownNav
DropdownNav: typeof
DropdownNav
Defined in: src/types/shared.ts:65
Render the container of the dropdowns.
Footer
Footer: typeof
Footer
Defined in: src/types/shared.ts:67
Render the footer element announced by screen readers.
Month
Month: typeof
Month
Defined in: src/types/shared.ts:69
Render the container of the MonthGrid.
MonthCaption
MonthCaption: typeof
MonthCaption
Defined in: src/types/shared.ts:71
Render the caption of the month grid.
MonthGrid
MonthGrid: typeof
MonthGrid
Defined in: src/types/shared.ts:73
Render the grid of days in a month.
Months
Months: typeof
Months
Defined in: src/types/shared.ts:75
Wrapper of the month grids.
MonthsDropdown
MonthsDropdown: typeof
MonthsDropdown
Defined in: src/types/shared.ts:101
Render the dropdown with the months.
Nav
Nav: typeof
Nav
Defined in: src/types/shared.ts:77
Render the navigation element with the next and previous buttons.
NextMonthButton
NextMonthButton: typeof
NextMonthButton
Defined in: src/types/shared.ts:83
Render the next month button element in the navigation.
Option
Option: typeof
Option
Defined in: src/types/shared.ts:79
Render the <option>
HTML element in the dropdown.
PreviousMonthButton
PreviousMonthButton: typeof
PreviousMonthButton
Defined in: src/types/shared.ts:81
Render the previous month button element in the navigation.
Root
Root: typeof
Root
Defined in: src/types/shared.ts:85
Render the root element of the calendar.
Select
Select: typeof
Select
Defined in: src/types/shared.ts:87
Render the select element in the dropdowns.
Week
Week: typeof
Week
Defined in: src/types/shared.ts:91
Render the week rows.
Weekday
Weekday: typeof
Weekday
Defined in: src/types/shared.ts:93
Render the weekday name in the header.
Weekdays
Weekdays: typeof
Weekdays
Defined in: src/types/shared.ts:95
Render the row containing the week days.
WeekNumber
WeekNumber: typeof
WeekNumber
Defined in: src/types/shared.ts:97
Render the cell with the number of the week.
WeekNumberHeader
WeekNumberHeader: typeof
WeekNumberHeader
Defined in: src/types/shared.ts:99
Render the header of the week number column.
Weeks
Weeks: typeof
Weeks
Defined in: src/types/shared.ts:89
Render the weeks section in the month grid.
YearsDropdown
YearsDropdown: typeof
YearsDropdown
Defined in: src/types/shared.ts:103
Render the dropdown with the years.