Skip to main content

Function: labelDayButton()

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

Defined in: src/labels/labelDayButton.ts:19

Generates the ARIA label for a day button.

Use the modifiers argument to provide additional context for the label, such as indicating if the day is "today" or "selected."

Parameters

Returns

string

The ARIA label for the day button.

Default Value

The formatted date.

See

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