react-day-picker
Version:
Customizable Date Picker for React
20 lines • 574 B
JavaScript
import { dateLib as defaultDateLib } from "../lib/index.js";
/**
* Return an ARIA label for the month grid, that will be announced when entering
* the grid.
*
* @defaultValue `LLLL y` (e.g. "November 2022")
* @group Labels
* @see https://daypicker.dev/docs/translation#aria-labels
*/
export function labelGrid(date, options,
/** @ignore */
dateLib = defaultDateLib) {
return dateLib.format(date, "LLLL y", options);
}
/**
* @deprecated Use {@link labelGrid} instead.
* @protected
*/
export const labelCaption = labelGrid;
//# sourceMappingURL=labelGrid.js.map