Skip to main content

Function: labelGridcell()

labelGridcell(date, modifiers?, options?, dateLib?): string

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

Generates the label for a day grid cell when the calendar is not interactive.

Parameters

ParameterTypeDescription
dateDateThe date to format.
modifiers?ModifiersOptional modifiers providing context for the day.
options?DateLibOptionsOptional configuration for the date formatting library.
dateLib?DateLibAn optional instance of the date formatting library.

Returns

string

The label for the day grid cell.

See

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