Time picker

The v-time-picker is stand-alone component that can be utilized in many existing Vuetify components. It offers the user a visual representation for selecting the time.

Uso

Time pickers have the light theme enabled by default.

API

v-time-picker
Nombre
allowed-hours
Default
null
Type
function

Components.TimePickers.

Nombre
allowed-minutes
Default
null
Type
function

Components.TimePickers.

Nombre
allowed-seconds
Default
null
Type
function

Components.TimePickers.

Nombre
color
Default
undefined
Type
string

Aplica el color especificado al control.

Nombre
dark
Default
false
Type
boolean

Aplica la variante del tema dark

Nombre
disabled New in — v1.4
Default
false
Type
boolean

Components.TimePickers.

Nombre
format
Default
'ampm'
Type
string

Components.TimePickers.

Nombre
full-width
Default
false
Type
boolean

Obliga a un ancho de 100%

Nombre
header-color
Default
undefined
Type
string

Define el color del encabezado. Si no se especifica utilizará el color definido por la prop color o el color default del picker

Nombre
landscape
Default
false
Type
boolean

Orienta el picker horizontalmente

Nombre
light
Default
false
Type
boolean

Aplica la variante del tema light

Nombre
max
Default
undefined
Type
string

Configura el ancho máximo

Nombre
min
Default
undefined
Type
string

Configura el ancho mínimo

Nombre
no-title
Default
false
Type
boolean

Esconde el título del picker

Nombre
readonly New in — v1.2
Default
false
Type
boolean

Components.TimePickers.

Nombre
scrollable
Default
false
Type
boolean

Components.TimePickers.

Nombre
use-seconds
Default
false
Type
boolean

Components.TimePickers.

Nombre
value
Default
undefined
Type
any

Controla la visibilidad

Nombre
width
Default
290
Type
number | string

El ancho del contenido

Ejemplos

Time pickers - Colors

Time picker colors can be set using the color and header-color props. If header-color prop is not provided header will use the color prop value.

Time pickers - In dialog and menu

Due to the flexibility of pickers, you can really dial in the experience exactly how you want it.

Time pickers - 24h format

A time picker can be switched to 24hr format. Note that the format prop defines only the way the picker is displayed, picker's value (model) is always in 24hr format.

Time pickers - Allowed times

You can specify allowed times using arrays, objects, and functions. You can also specify time step/precision/interval - e.g. 10 minutes.

Time pickers - Setting picker width

You can specify allowed the picker's width or make it full width.

Edit this page | language on Github
Vuetify 3 is now available!The latest version of Vuetify is now available!
Learn about Vuetify 3's new features and functionality for modern Vue applications
Start exploringExplore