Toggle Sidebar B
header.lightDarkMode D

Date Picker

Button + Popover + Calendar bundled into one component. Supports optional time selection. For inline picking without a trigger, use Calendar directly.

Default

Click to open the calendar popover.

With time

Set withTime to add hour and minute selects below the calendar.

Disabled

Set disabled to block the trigger from opening.

API Reference

Props, events, and slots for each sub-component.

DatePicker

Props

PropTypeDefaultDescription
modelValueDate | nullnullSelected date. Supports v-model.
withTimebooleanfalseAdd hour/minute selects below the calendar.
disabledbooleanfalseDisable the trigger.
placeholderstring"Pick a date"Trigger text when nothing is selected.
defaultHournumber9Initial hour when withTime is on.
defaultMinutenumber0Initial minute when withTime is on.
disableFutureDatesbooleanfalseBlock selecting dates after today.
disablePastDatesbooleanfalseBlock selecting dates before today.
minDate | nullnullEarliest selectable date.
maxDate | nullnullLatest selectable date.
minYearnumberLower bound of the year dropdown.
maxYearnumberUpper bound of the year dropdown.
placeholderDateDate | nullnullMonth the calendar opens on when empty.

Events

EventDescription
update:modelValueFires with the chosen Date (or null). Enables v-model.

Accessibility

Keyboard shortcuts and ARIA behavior.

Keyboard

ShortcutDescription
SpaceOpens the calendar popover from the trigger.
EnterOpens the calendar popover from the trigger.
Moves to the same day in the previous week.
Moves to the same day in the next week.
Moves to the previous day.
Moves to the next day.
EscCloses the popover and returns focus to the trigger.
  • Composes a button, popover, and calendar grid.
  • Focus moves into the grid when the popover opens and back to the trigger when it closes.
  • The trigger exposes aria-expanded to reflect the popover state.