Interface: CustomComponents
Map of the components that can be changed using the components
prop.
Seeβ
https://github.com/gpbl/react-day-picker/tree/main/src/components
Propertiesβ
Caption()?β
optional
Caption: (props
) =>null
|Element
The component for the caption element.
Parametersβ
Parameter | Type |
---|---|
props | CaptionProps |
Returnsβ
null
| Element
Sourceβ
src/types/DayPickerBase.ts:325
CaptionLabel()?β
optional
CaptionLabel: (props
) =>null
|Element
The component for the caption element.
Parametersβ
Parameter | Type |
---|---|
props | CaptionLabelProps |
Returnsβ
null
| Element
Sourceβ
src/types/DayPickerBase.ts:327
Day()?β
optional
Day: (props
) =>null
|Element
The component for the day element.
Each Day
in DayPicker should render one of the following, according to
the return value of useDayRender.
- An empty
Fragment
, to render ifisHidden
is true - A
button
element, when the day is interactive, e.g. is selectable - A
div
or aspan
element, when the day is not interactive
Parametersβ
Parameter | Type |
---|---|
props | DayProps |
Returnsβ
null
| Element
Sourceβ
src/types/DayPickerBase.ts:338
DayContent()?β
optional
DayContent: (props
) =>null
|Element
The component for the content of the day element.
Parametersβ
Parameter | Type |
---|---|
props | DayContentProps |
Returnsβ
null
| Element
Sourceβ
src/types/DayPickerBase.ts:340
Dropdown()?β
optional
Dropdown: (props
) =>null
|Element
The component for the drop-down elements.
Parametersβ
Parameter | Type |
---|---|
props | DropdownProps |
Returnsβ
null
| Element
Sourceβ
src/types/DayPickerBase.ts:342
Footer()?β
optional
Footer: (props
) =>null
|Element
The component for the table footer.
Parametersβ
Parameter | Type |
---|---|
props | FooterProps |
Returnsβ
null
| Element
Sourceβ
src/types/DayPickerBase.ts:344
Head()?β
optional
Head: () =>null
|Element
The component for the tableβs head.
Returnsβ
null
| Element
Sourceβ
src/types/DayPickerBase.ts:346
HeadRow()?β
optional
HeadRow: () =>null
|Element
The component for the tableβs head row.
Returnsβ
null
| Element
Sourceβ
src/types/DayPickerBase.ts:348
IconDropdown()?β
optional
IconDropdown: (props
) =>null
|Element
The component for the small icon in the drop-downs.
Parametersβ
Parameter | Type |
---|---|
props | StyledComponent |
Returnsβ
null
| Element
Sourceβ
src/types/DayPickerBase.ts:350
IconLeft()?β
optional
IconLeft: (props
) =>null
|Element
The arrow left icon (used for the Navigation buttons).
Parametersβ
Parameter | Type |
---|---|
props | StyledComponent |
Returnsβ
null
| Element
Sourceβ
src/types/DayPickerBase.ts:354
IconRight()?β
optional
IconRight: (props
) =>null
|Element
The arrow right icon (used for the Navigation buttons).
Parametersβ
Parameter | Type |
---|---|
props | StyledComponent |
Returnsβ
null
| Element
Sourceβ
src/types/DayPickerBase.ts:352
Months()?β
optional
Months: (props
) =>null
|Element
The component wrapping the month grids.
Parametersβ
Parameter | Type |
---|---|
props | MonthsProps |
Returnsβ
null
| Element
Sourceβ
src/types/DayPickerBase.ts:356
Row()?β
optional
Row: (props
) =>null
|Element
The component for the table rows.
Parametersβ
Parameter | Type |
---|---|
props | RowProps |
Returnsβ
null
| Element
Sourceβ
src/types/DayPickerBase.ts:358
WeekNumber()?β
optional
WeekNumber: (props
) =>null
|Element
The component for the week number in the table rows.
Parametersβ
Parameter | Type |
---|---|
props | WeekNumberProps |
Returnsβ
null
| Element