react-day-picker
Version:
Customizable Date Picker for React
14 lines (13 loc) • 461 B
text/typescript
/**
* Generates the ARIA label for the "previous month" button.
*
* @defaultValue `"Go to the Previous Month"`
* @param month - The date representing the previous month, or `undefined` if
* there is no previous month.
* @returns The ARIA label for the "previous month" button.
* @group Labels
* @see https://daypicker.dev/docs/translation#aria-labels
*/
export function labelPrevious(month: Date | undefined) {
return "Go to the Previous Month";
}