Leave Yamada UI a star

Star
Yamada UIYamada UIv1.7.2

MultiMultiDatePicker

MultiDatePicker is a component used for users to select multiple dates.

Source@yamada-ui/calendar

The MultiDatePicker follows the WAI-ARIA - Combobox Pattern for accessibility.

If you are not using FormControl, set aria-label or aria-labelledby to MultiDatePicker.

<MultiDatePicker placeholder="YYYY/MM/DD" aria-label="Date to reserve" />
Copied!
<VStack gap="sm">
<Heading as="h3" id="label">
Date to reserve
</Heading>
<MultiDatePicker placeholder="YYYY/MM/DD" aria-labelledby="label" />
</VStack>
Copied!

Keyboard Navigation

KeyDescriptionState
ArrowUpMoves focus one cell up.-
ArrowDownMoves focus one cell down.-
ArrowLeftMoves focus one cell left. If on first cell, focuses last cell of previous period.-
ArrowRightMoves focus one cell right. If on last cell, focuses first cell of next period.-
HomeFocuses the first cell.-
EndFocuses the last cell.-
Space, EnterActivates the focused cell.-
EscapeCloses the dialog.closeOnEsc={true}

ARIA Roles and Attributes

ComponentRoles and AttributesUsage
MultiDatePickerField Internalrole="combobox"Indicates that this is a combobox.
aria-haspopup="dialog"Indicates that a dialog exists.
aria-expandedSet to "true" when the dialog is open, "false" when closed.
aria-controlsSet to the id of the related ColorSelector when open, undefined when closed.
aria-readonlySet to "true" when isReadOnly is set.
aria-disabledSet to "true" when isDisabled is set.
aria-invalidSet to "true" when isInvalid is set.
aria-requiredSet to "true" when isRequired is set.
DatePickerClearIcon Internalrole="button"Indicates that this is a button.
aria-label"Clear value" is set.
Calendar Internalrole="dialog"Indicates that this is a dialog.
idThe id used to associate with MultiDatePickerField.
aria-hiddenSet to "true" when the dialog is open, "false" when closed.
CalendarLabel Internalaria-live="polite"Indicates that it may be updated outside of focus.
CalendarControlPrev Internalaria-labelSets "Go to previous month" if type is "date", otherwise sets "Go to previous year".
CalendarControlNext Internalaria-labelSets "Go to next month" if type is "date", otherwise sets "Go to next year".
Month Internalrole="grid"Indicates that it is a grid.
aria-labelSets the selected month and year, like "October 2024".
aria-multiselectableIndicates that multiple selection is possible.
MonthList Internalrole="grid"Indicates that it is a grid.
aria-labelSets the selected year, like "2024".
YearList Internalrole="grid"Indicates that it is a grid.
aria-labelSets the year range, like "From 2021 to 2032".
Button Internalaria-selectedSet to "true" if the item is selected, "false" if not selected.
aria-disabledSet to "true" if the item is disabled.

Edit this page on GitHub

PreviousDatePickerNextRangeDatePicker