Skip to main content

Function: labelGrid()

labelGrid(date, options?, dateLib?): string

Defined in: src/labels/labelGrid.ts:15

Generates the ARIA label for the month grid, which is announced when entering the grid.

Parameters

ParameterTypeDescription
dateDateThe date representing the month.
options?DateLibOptionsOptional configuration for the date formatting library.
dateLib?DateLibAn optional instance of the date formatting library.

Returns

string

The ARIA label for the month grid.

Default Value

LLLL y (e.g., "November 2022").

See

https://daypicker.dev/docs/translation#aria-labels