UNPKG

react-day-picker

Version:

Customizable Date Picker for React

21 lines (20 loc) 736 B
import React, { type HTMLAttributes } from "react"; import type { CalendarDay } from "../classes/index.js"; import type { Modifiers } from "../types/index.js"; /** * Render a grid cell for a specific day in the calendar. * * Handles interaction and focus for the day. If you only need to 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];