v-model | Binding value | Date | — | — |
date-formatter | Function to format date to a string for display in the input | Function | — | (date) => new Intl.DateTimeFormat(locale, { timeZone: "UTC" }).format(date) |
date-parser | Function to parse string to a date for set a date from the input to the component | Function | — | Tries to parse the date using the locale specific format. Fallback to Date.parse |
date-creator | Function used internally to create a new Date instance | Function | — | () => new Date() |
min-date | Earliest date available for selection | Date | — | — |
max-date | Latest date available for selection | Date | — | — |
events | Dates to display indicators | Array | — | — |
indicators | Shape to use when showing event indicators | String | dots , bars | dots |
focused-date | Date that should be initially focused upon | Date | — | new Date() |
size | Vertical size of input and picker, optional | String | is-small , is-medium , is-large | — |
inline | Datepicker is shown inline, input is removed | Boolean | — | false |
editable | Enable input/typing. Note that you might have to set a custom date parser | Boolean | — | false |
loading | Add the loading state to the input | Boolean | — | false |
icon | Icon name to be added | String | — | — |
icon-right | Icon name to be added on the right side | String | — | — |
icon-right-clickable | Make the right icon clickable | Boolean | — | false |
icon-pack | Icon pack to use | String | mdi , fa , fas , far , fad , fal | mdi |
icon-prev | Icon to use for previous month | String | — | chevron-left |
icon-next | Icon to use for next month | String | — | chevron-right |
unselectable-dates | Array of unselectable dates, or a function to identify unselectable dates | Array, Function | — | - |
unselectable-days-of-week | Array of unselectable days of week | Array | 0 - 6 (Sunday is 0, Monday is 1, and so on) | - |
selectable-dates | Array of selectable dates, or a function to identify selectable dates | Array, Function | — | - |
locale | Accept a string with a BCP 47 language tag, or an array of such strings.
See Unicode BCP 47 locale identifier | String, Array of String | — | undefined : default to browser locale. |
month-names | Names of months to display in table header | Array | — | undefined : default to browser locale. |
day-names | Names of days to display in table header | Array | — | undefined : default to browser locale. |
first-day-of-week | First day of week to display in table header | Number | 0 - 6 (Sunday is 0, Monday is 1, and so on) | 0 |
mobile-native | Enable native datepicker on mobile | Boolean | true , false | true |
mobile-modal | Datepicker is shown into a modal on mobile | Boolean | true , false | true |
position | Optional, position of the datepicker relative to the input | String | is-top-right , is-top-left , is-bottom-left | Bottom right |
open-on-focus | Open datepicker on input focus | Boolean | — | false |
type | Type of picker | String | month | - |
years-range | Years range relative to selected year | Array | - | [-100, 3] |
nearby-month-days | Show/Hide nearby month days (prev and next month) | Boolean | - | true |
nearby-selectable-month-days | When nearby-month-days , it allows to select/unselect nearby month days | Boolean | - | false |
show-week-number | Display week number | Boolean | - | false |
week-number-clickable | Enable click on week number | Boolean | - | false |
rules-for-first-week | Choose the rule to determinate the first week of Year, 4 for ISO or 1 for other | Number | - | 4 |
range | Flag to allow choosing a range of date | Boolean | — | false |
multiple | Flag to allow choosing multiple dates | Boolean | — | false |
focusable | Datepicker container can be focused | Boolean | — | true |
trap-focus | Trap focus inside the datepicker. | Boolean | — | true |
close-on-click | Choose whether the Datepicker should close after selecting a date | Boolean | - | true |
append-to-body | Append datepicker calendar to body (prevents event bubbling) | Boolean | — | false |
aria-next-label | Accessibility label for the next month button. | String | — | — |
aria-previous-label | Accessibility label for the previous month button. | String | — | — |
Any native attribute | — | — | — | — |