VTimePicker API
name | type | default |
|---|---|---|
number[] | ((val: number) => boolean) | undefined | |
Restricts which hours can be selected. | ||
number[] | ((val: number) => boolean) | undefined | |
Restricts which minutes can be selected. | ||
number[] | ((val: number) => boolean) | undefined | |
Restricts which seconds 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 | ||
'default' | 'comfortable' | 'compact' | 'default' | |
Adjusts the vertical height used by the component. | ||
boolean
| false | |
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. | ||
'ampm' | '24hr' | 'ampm' | |
Defines the format of a time displayed in picker. Available options are | ||
string | number | undefined | |
Sets the height for the component. | ||
boolean
| false | |
Hide the picker header. | ||
boolean
| false | |
Hide the picker title. | ||
Anchor | undefined | |
Specifies the component’s location. Can combine by using a space separated string. | ||
string
| undefined | |
Maximum allowed time. | ||
string | number | undefined | |
Sets the maximum height for the component. | ||
string | number | undefined | |
Sets the maximum width for the component. | ||
string
| undefined | |
Minimum allowed time. | ||
string | number | undefined | |
Sets the minimum height for the component. | ||
string | number | undefined | |
Sets the minimum width for the component. | ||
any
| undefined | |
The v-model value of the component. If component supports the multiple prop, this defaults to an empty array. | ||
'am' | 'pm' | 'am' | |
Sets period for 12hr format. | ||
'fixed' | 'relative' | 'absolute' | 'static' | 'sticky' | undefined | |
Sets the position for the component. | ||
boolean
| false | |
Puts picker in readonly state. | ||
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 | |
Allows changing hour/minute with mouse scroll. | ||
string | (new () => any) | FunctionalComponent | 'div' | |
Specify a custom tag used on the root element. | ||
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.timePicker.title' | |
Specify a title text for the component. | ||
boolean
| false | |
Toggles the use of seconds in picker. | ||
'input' | 'dial' | 'dial' | |
Applies a distinct style to the component. | ||
'hour' | 'minute' | 'second' | 'hour' | |
The current view mode of the picker.` | ||
string | number | undefined | |
Width of the picker. | ||
name | type | |
|---|---|---|
[number] | ||
Emitted when user selects the hour. | ||
[number] | ||
Emitted when user selects the minute. | ||
[string] | ||
Event that is emitted when the component’s model changes. | ||
['am' | 'pm'] | ||
Emitted when user clicks the AM/PM button. | ||
[number] | ||
Emitted when user selects the second. | ||
['hour' | 'minute' | 'second'] | ||
Emitted when the view mode changes. | ||
name | default |
|---|---|
18px | |
8px | |
currentColor | |
solid | |
2px | |
10px | |
-4px | |
calc(50% - 4px) | |
calc(50% - 1px) | |
2px | |
14px | |
27px | |
290px | |
10px | |
4px 4px 0 0 | |
80px | |
96px | |
40px | |
0 0 4px 4px | |
56px | |
80px | |
96px | |
rgb(var(--v-theme-surface-light)) | |
('default': 0, 'comfortable': -4, 'compact': -6) | |
56px | |
80px | |
0.04 | |
96px | |
36px | |
44px | |
72px | |
96px | |
40px | |
64px | |
64px | |
40px | |
80px | |
64px | |
40px | |
64px | |
74px | |
24px | |
12px | |
.0333333333em | |
40px | |
16px 0 0 | |
55px | |
16px | |
24px | |
328px |