UNPKG

662 BTypeScriptView Raw
1import React from "react";
2import type { CalendarDay } from "../classes/index.js";
3import type { Modifiers } from "../types/index.js";
4/**
5 * Render the button for a day in the calendar.
6 *
7 * When not interactive, DayPicker will render a `DayContent` component instead
8 * of a `DayButton` component.
9 *
10 * @group Components
11 * @see https://daypicker.dev/guides/custom-components
12 */
13export declare function DayButton(props: {
14 /** The day to render. */
15 day: CalendarDay;
16 /** The modifiers for the day. */
17 modifiers: Modifiers;
18} & JSX.IntrinsicElements["button"]): React.JSX.Element;
19export type DayButtonProps = Parameters<typeof DayButton>[0];