Components

BaseDateRangeField

Two date fields for a start and an end, kept in order.

components/ui/inputs/BaseDateRangeField.vue
View in the demo

Example

Travel dates
Travel dates from
–Travel dates to

API

Props

Name
Type
Default
Description
minstring—The earliest selectable date (YYYY-MM-DD).
maxstring—The latest selectable date.
min-aria-labelstring—Accessible name of the start field.
max-aria-labelstring—Accessible name of the end field.
labelstring—The visible label above the field, linked to it with for and aria-labelledby.
input-idstring—A fixed id for the input. One is generated with useId() when you leave it out.
optionalboolean—Adds “(optional)” after the label. Never mark required fields.
infoBaseInputInfo—A help popover next to the label: a text or a list of { title, text }.
v-modelBaseDateRangeValue | nullnull[start, end] as YYYY-MM-DD strings, or null.

Events

Name
Payload
Description
@update:modelValue[value: BaseDateRangeValue | null]—

Accessibility

With a label the group renders a fieldset with a legend, so screen readers announce the question before each option. It accepts rules, hint and error-messages like any field.

© 2026 melsami UI.
Developer documentation for melsami UI.