BlogPlaygroundOne

VTimePicker API


Props
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 bg- prefix (for example success, purple or bg-purple) or CSS color (#033 or rgba(255, 0, 0, 0.5)). Find a list of built-in classes on the colors page.

string | number | boolean
false

Applies utility border classes to the component. To use it, you need to omit the border- prefix, (for example use border-sm as border="sm"). Find a list of the built-in border classes on the borders page.

string
undefined

Applies specified color to the control - supports utility colors with or without text- prefix (for example success, purple or text-purple) or CSS color (#033 or rgba(255, 0, 0, 0.5)). Find a list of built-in classes on the colors page.

'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 ampm and 24hr.

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.

Events
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.

Slots
never
never
never

Slot for customizing the content in the actions area

Displayed below the clock, can be used for example for adding action button (OK and Cancel)

Slot for the component’s title content.

SASS Variables
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