date-range-picker

Date Range Picker

A start and an end date typed segment by segment or picked from a calendar the button beside them opens; joins a Field around it.

Parts

PartFileDoes
DateRangePickerDateRangePicker.vueLets the user type a start and an end date, or pick both from a calendar the button beside them opens.

Styling

All of Date Range Picker’s styles live in date-range-picker.json. New to styling in Frontic UI? How styling works →

Install

npm packages
@internationalized/date
@vueuse/core
reka-ui

Built from

API reference

DateRangePicker.vue

Lets the user type a start and an end date, or pick both from a calendar the button beside them opens.

Props 36

PropTypeDefault
disabledbooleanfalse
dirDirection—
modelValueDateRange | null—
defaultValueDateRange—
namestring—
requiredbooleanfalse
defaultPlaceholderDateValue—
placeholderDateValue—
maxValueDateValue—
minValueDateValue—
localestring—
readonlybooleanfalse
isDateUnavailableMatcher—
idstring—
hourCycleHourCycle—
stepDateStep—
granularityGranularity—
hideTimeZonebooleanfalse
defaultOpenbooleanfalse
openbooleanfalse
modalbooleanfalse
pagedNavigationbooleanfalse
preventDeselectbooleanfalse
weekStartsOnWeekStartsOn—
weekdayFormatWeekDayFormat—
fixedWeeksbooleanfalse
numberOfMonthsnumber—
isDateDisabledMatcher—
isDateHighlightableMatcher—
allowNonContiguousRangesbooleanfalse
fixedDate'start' | 'end'—
maximumDaysnumber—
closeOnSelectbooleantrue
classClassValue—
triggerLabelstring'Open calendar'
separatorstring'–'

Events 4

EventPayload
update:modelValuedate: DateRange
update:openvalue: boolean
update:placeholderdate: DateValue
update:startValuedate: DateValue | undefined

Slots 1

SlotSlot props
default{ segments: { start: Segment[]; end: Segment[]; }; modelValue: DateRange; }

Recipe date-range-picker-separator 1 group

Date Range Picker
State