Files
avz-site/node_modules/react-day-picker/dist/esm/formatters/formatCaption.d.ts
T
2026-05-30 19:59:39 -03:00

21 lines
803 B
TypeScript

import { DateLib, type DateLibOptions } from "../classes/DateLib.js";
/**
* Formats the caption of the month.
*
* @defaultValue Locale-specific month/year order (e.g., "November 2022").
* @param month The date representing the month.
* @param options Configuration options for the date library.
* @param dateLib The date library to use for formatting. If not provided, a new
* instance is created.
* @returns The formatted caption as a string.
* @group Formatters
* @see https://daypicker.dev/docs/translation#custom-formatters
*/
export declare function formatCaption(month: Date, options?: DateLibOptions, dateLib?: DateLib): string;
/**
* @private
* @deprecated Use {@link formatCaption} instead.
* @group Formatters
*/
export declare const formatMonthCaption: typeof formatCaption;