UNPKG

552 BTypeScriptView Raw
1import React from "react";
2import type { CalendarMonth } from "../classes/index.js";
3/**
4 * Render the caption of a month in the calendar.
5 *
6 * @group Components
7 * @see https://daypicker.dev/guides/custom-components
8 */
9export declare function MonthCaption(props: {
10 /** The month where the grid is displayed. */
11 calendarMonth: CalendarMonth;
12 /** The index where this month is displayed. */
13 displayIndex: number;
14} & JSX.IntrinsicElements["div"]): React.JSX.Element;
15export type MonthCaptionProps = Parameters<typeof MonthCaption>[0];