Skip to main content

Function: labelDayButton()

labelDayButton(date, modifiers, options?): string

The ARIA label for the day button.

Use the modifiers argument to add additional context to the label, e.g. when a day is selected or is today.

Parameters​

ParameterTypeDescription
dateDate-
modifiersModifiersThe modifiers for the day.
options?FormatOptions-

Returns​

string

Default Value​

The formatted date.

See​

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

Defined in​

src/labels/labelDayButton.ts:15