VDatePicker API
name | type | default |
|---|---|---|
unknown[] | ((date: unknown) => boolean) | undefined | |
Restricts which dates can be selected. | ||
number[] | ((date: number) => boolean) | undefined | |
Restricts which months can be selected. | ||
number[] | ((date: number) => boolean) | undefined | |
Restricts which years can be selected. | ||
string
| undefined | |
Applies specified color to the control’s background. Used on components that also support the color prop. - supports utility colors with or without | ||
string | number | boolean | false | |
Applies utility border classes to the component. To use it, you need to omit the | ||
string
| undefined | |
Applies specified color to the control - supports utility colors with or without | ||
string | number | undefined | |
Sets the height of the controls. | ||
'docked' | 'modal' | 'docked' | |
| ||
boolean
| null | |
Removes the ability to click or target the component. | ||
boolean
| false | |
Adds a divider between the header and controls. | ||
string | number | undefined | |
Designates an elevation applied to the component between 0 and 5. You can find more information on the elevation page. | ||
| string | boolean | string[] | Record<string, string | boolean | string[]> | ((date: string) => string | boolean | string[]) | null | |
Sets the color for event dots. It can be string (all events will have the same color) or | ||
| string[] | ((date: string) => string | boolean | string[]) | Record<string, string | boolean | string[]> | null | |
Array of dates or object defining events or colors or function returning boolean/color/array of colors. | ||
string | number | undefined | |
Sets the first day of the week, starting with 0 for Sunday. (Note: not guaranteed to work when using custom date adapters.) | ||
string | number | undefined | |
Sets the day that determines the first week of the year, starting with 0 for Sunday. For ISO 8601 this should be 4. (Note: not guaranteed to work when using custom date adapters.) | ||
string
| '$vuetify.datePicker.header' | |
Text shown when no display-date is set. | ||
string
| undefined | |
Allows you to set a different color for the header when used in conjunction with the | ||
string
| 'normalDateWithWeekday' | |
Allows you to customize the format of the date selection text that appears in the header of the calendar. | ||
string | number | undefined | |
Sets the height for the component. | ||
boolean
| false | |
Hides the header. | ||
boolean
| false | |
Hide the picker title. | ||
boolean
| false | |
Hides the weekdays. | ||
boolean
| false | |
Changes the picker to landscape mode. | ||
string | number | undefined | |
Sets header width when in landscape mode. | ||
Anchor | undefined | |
Specifies the component’s location. Can combine by using a space separated string. | ||
unknown
| undefined | |
Maximum allowed date/month (ISO 8601 format). | ||
string | number | undefined | |
Sets the maximum height for the component. | ||
string | number | undefined | |
Sets the maximum width for the component. | ||
unknown
| undefined | |
Minimum allowed date/month (ISO 8601 format). | ||
string | number | undefined | |
Sets the minimum height for the component. | ||
string | number | undefined | |
Sets the minimum width for the component. | ||
| string | (string | [string, number])[] | (new () => any) | FunctionalComponent | '$subgroup' | |
Icon displayed next to the current month and year, toggles year selection when clicked. | ||
unknown
| undefined | |
The v-model value of the component. If component supports the multiple prop, this defaults to an empty array. | ||
string | number | undefined | |
Sets the month. | ||
number | boolean | (string & {}) | 'range' | false | |
Allow the selection of multiple dates. The range value selects all dates between two selections. | ||
| string | (string | [string, number])[] | (new () => any) | FunctionalComponent | '$next' | |
Sets the icon for next month/year button. | ||
boolean
| false | |
Only applies to | ||
'fixed' | 'static' | 'relative' | 'absolute' | 'sticky' | undefined | |
Sets the position for the component. | ||
| string | (string | [string, number])[] | (new () => any) | FunctionalComponent | '$prev' | |
Sets the icon for previous month/year button. | ||
boolean
| false | |
Makes the picker readonly (doesn’t allow to select new date). | ||
string
| 'picker-reverse-transition' | |
The transition used when changing months into the past | ||
string | number | boolean | undefined | |
Designates the border-radius applied to the component. This can be 0, xs, sm, true, lg, xl, pill, circle, and shaped. Find more information on available border radius classes on the Border Radius page. | ||
boolean
| false | |
Toggles visibility of days from previous and next months. | ||
boolean
| false | |
Toggles visibility of the week numbers in the body of the calendar. | ||
string | (new () => any) | FunctionalComponent | 'div' | |
Specify a custom tag used on the root element. | ||
string
| undefined | |
Specify content text for the component. | ||
string
| undefined | |
Specify a theme for this component and all of its children. | ||
boolean
| false | |
Removes any applied border-radius from the component. | ||
string
| '$vuetify.datePicker.title' | |
Specify a title text for the component. | ||
string
| 'picker-transition' | |
The transition used when changing months into the future | ||
'month' | 'year' | 'months' | 'month' | |
Determines which picker in the date or month picker is being displayed. Allowed values: | ||
'long' | 'short' | 'narrow' | undefined | |
Allows you to customize the format of the weekday string that appears in the body of the calendar. Uses | ||
(0 | 1 | 2 | 4 | 5 | 6 | 3)[] | [0, 1, 2, 3, 4, 5, 6] | |
An array of weekdays to display. Does not affect the order. | ||
'static' | 'dynamic' | 'static' | |
A dynamic number of weeks in a month will grow and shrink depending on how many days are in the month. A static number always shows 7 weeks. | ||
string | number | undefined | |
Width of the picker. | ||
number
| undefined | |
Sets the year. | ||
name | type | |
|---|---|---|
[unknown] | ||
Event that is emitted when the component’s model changes. | ||
[any] | ||
Emitted when the month changes. | ||
[any] | ||
Emitted when the view mode changes. | ||
[any] | ||
Emitted when the year changes. | ||
Slot for the actions. | ||
Adds an item inside the input and after input content. | ||
Slot for the controls. | ||
Slot for a day in the month. | ||
Slot for the header. | ||
Slot for the month. | ||
Adds an item outside the input and before input content. | ||
Slot for the component’s title content. | ||
Slot for the year. | ||
name | default |
|---|---|
4px -4px | |
12px 8px | |
var(--v-date-picker-controls-height, 56px) | |
4px 12px | |
4px | |
8px | |
0 1px | |
8px | |
70px | |
170px | |
24px | |
0.875rem | |
4px | |
40px | |
0.875rem | |
0 12px 8px | |
0px 24px | |
288px | |
368px | |
328px | |
288px | |
32px |