react-day-picker
Version:
Customizable Date Picker for React
21 lines (20 loc) • 739 B
TypeScript
import React, { type HTMLAttributes } from "react";
import type { CalendarDay } from "../classes/index.js";
import type { Modifiers } from "../types/index.js";
/**
* Render the gridcell of a day in the calendar and handle the interaction and
* the focus with they day.
*
* If you need to just change the content of the day cell, consider swapping the
* `DayButton` component instead.
*
* @group Components
* @see https://daypicker.dev/guides/custom-components
*/
export declare function Day(props: {
/** The day to render. */
day: CalendarDay;
/** The modifiers to apply to the day. */
modifiers: Modifiers;
} & HTMLAttributes<HTMLDivElement>): React.JSX.Element;
export type DayProps = Parameters<typeof Day>[0];