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.

States: Default, Invalid

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

PartRecipe
DateRangePickerdate-range-picker-separator

Install

Writes 3 files into components/ui/date-range-picker/. For agents, npx @frontic/ui docs date-range-picker prints this reference as markdown; the MCP server serves the same.

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

Built from

API reference

DateRangePicker DateRangePicker.vue

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

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'–'
EventPayload
update:modelValuedate: DateRange
update:openvalue: boolean
update:placeholderdate: DateValue
update:startValuedate: DateValue | undefined
SlotSlot props
default{ segments: { start: Segment[]; end: Segment[]; }; modelValue: DateRange; }
Recipe date-range-picker-separatorSets
base: date-range-picker-separator 2 properties
Example
State