1 | import React, { type HTMLAttributes } from "react";
|
2 | import type { CalendarDay } from "../classes/index.js";
|
3 | import type { Modifiers } from "../types/index.js";
|
4 | /**
|
5 | * Render the gridcell of a day in the calendar and handle the interaction and
|
6 | * the focus with they day.
|
7 | *
|
8 | * If you need to just change the content of the day cell, consider swapping the
|
9 | * `DayDate` component instead.
|
10 | *
|
11 | * @group Components
|
12 | * @see https://daypicker.dev/guides/custom-components
|
13 | */
|
14 | export declare function Day(props: {
|
15 | /** The day to render. */
|
16 | day: CalendarDay;
|
17 | /** The modifiers to apply to the day. */
|
18 | modifiers: Modifiers;
|
19 | } & HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
20 | export type DayProps = Parameters<typeof Day>[0];
|