date-picker

Date Picker

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

Parts

PartFileDoes
DatePickerDatePicker.vueLets the user type a date, or pick it from a calendar the button beside it opens.
DatePickerContentDatePickerContent.vueThe popover a DatePicker's or DateRangePicker's calendar opens in, lined up with the field.
DatePickerTriggerDatePickerTrigger.vueThe calendar button at the end of a DatePicker's or DateRangePicker's field.

Anatomy

<DatePicker>
  <DatePickerTrigger />
  <DatePickerContent />
</DatePicker>

Styling

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

Install

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

Built from

API reference

DatePicker.vue

Lets the user type a date, or pick it from a calendar the button beside it opens.

Props 33

PropTypeDefault
disabledbooleanfalse
dirDirection—
modelValueDateValue | null—
defaultValueDateValue—
namestring—
requiredbooleanfalse
defaultPlaceholderDateValue—
placeholderDateValue—
maxValueDateValue—
minValueDateValue—
localestring—
readonlybooleanfalse
isDateUnavailableMatcher—
idstring—
hourCycleHourCycle—
stepDateStep—
stepSnappingbooleanfalse
granularityGranularity—
hideTimeZonebooleanfalse
defaultOpenbooleanfalse
openbooleanfalse
modalbooleanfalse
pagedNavigationbooleanfalse
preventDeselectbooleanfalse
weekStartsOnWeekStartsOn—
weekdayFormatWeekDayFormat—
fixedWeeksbooleanfalse
numberOfMonthsnumber—
isDateDisabledMatcher—
closeOnSelectbooleantrue
classClassValue—
layoutLayoutTypes—
triggerLabelstring'Open calendar'

Events 3

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

Slots 1

SlotSlot props
default{ segments: Segment[]; modelValue: DateValue | undefined; }

DatePickerContent.vue

DatePickerTrigger.vue
Date Picker
State