UNPKG

587 BTypeScriptView Raw
1import React, { type ButtonHTMLAttributes } 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 * @group Components
8 * @see https://daypicker.dev/guides/custom-components
9 */
10export declare function DayButton(props: {
11 /** The day to render. */
12 day: CalendarDay;
13 /** The modifiers for the day. */
14 modifiers: Modifiers;
15} & ButtonHTMLAttributes<HTMLButtonElement>): React.JSX.Element;
16export type DayButtonProps = Parameters<typeof DayButton>[0];