import { type CustomComponents } from "https://deno.land/x/netzo@0.3.66/deps/react-day-picker.ts";
Map of the components that can be changed using the components
prop.
Look at the components source to understand how internal components are built.
Properties
optional
Caption: (props: CaptionProps) => JSX.Element | nullThe component for the caption element.
optional
CaptionLabel: (props: CaptionLabelProps) => JSX.Element | nullThe component for the caption element.
optional
Day: (props: DayProps) => JSX.Element | nullThe component for the day element.
Each Day
in DayPicker should render one of the following, according to
the return value of useDayRender.
- an empty
React.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
optional
DayContent: (props: DayContentProps) => JSX.Element | nullThe component for the content of the day element.
optional
Dropdown: (props: DropdownProps) => JSX.Element | nullThe component for the drop-down elements.
optional
IconDropdown: (props: StyledComponent) => JSX.Element | nullThe component for the small icon in the drop-downs.
optional
IconRight: (props: StyledComponent) => JSX.Element | nullThe arrow right icon (used for the Navigation buttons).
optional
IconLeft: (props: StyledComponent) => JSX.Element | nullThe arrow left icon (used for the Navigation buttons).
optional
Row: (props: RowProps) => JSX.Element | nullThe component for the table rows.
optional
WeekNumber: (props: WeekNumberProps) => JSX.Element | nullThe component for the week number in the table rows.