Skip to content
On this page

Timepicker

An input with a simple dropdown/modal for selecting a time, uses native timepicker for mobile

Base

Show code

Min/Max date

Show code

Footer

Show code

Granularity

Show code

Inline

Show code

Class props


How does Class props inspector work?
Class propDescriptionPropsSuffixes
boxClassClass of the Timepicker component box where you choose the date.
dropdownClassesClasses to apply on dropdown. More detail here
footerClassClass of the Timepicker footer.
inputClassesClasses to apply on internal input. More detail here
mobileClassClass of the Table when on mobile.
👉 Switch to mobile view to see it in action!
rootClassClass of the root element.
selectClassesClasses to apply on select. More detail here
separatorClassClass of the Timepicker separator.
sizeClassClass of the Timepicker component size.sizesmall
medium
large


Props

Prop nameDescriptionTypeValuesDefault
appendToBodyboolean-
autocompleteNative options to use in HTML5 validationstring-
defaultMinutesnumber-
defaultSecondsnumber-
disabledboolean-
editableboolean-
enableSecondsboolean-
expandedMakes input full width when inside a grouped or addon fieldboolean-
hourFormatstring-
iconIcon name to be addedstring-
iconPackIcon pack to usestringmdi, fa, fas and any other custom icon pack
incrementHoursnumber-1
incrementMinutesnumber-1
incrementSecondsnumber-1
inlineboolean-
maxTimedate-
maxlengthSame as native maxlength, plus character counternumber|string-
minTimedate-
mobileBreakpointMobile breakpoint as max-width valuestring-
mobileNativeboolean-
From config

timepicker: {
  mobileNative: true
}
openOnFocusboolean-
overrideboolean-
placeholderstring-
positionstring-
resetOnMeridianChangeboolean-false
roundedMakes the element roundedboolean-
sizeSize of button, optionalstringsmall, medium, large
statusIconShow status icon using field and variant propboolean-
From config

{
   "statusIcon": true
}
timeCreatorfunc-Default function (see source code)
timeFormatterfunc-Default function (see source code)
timeParserfunc-Default function (see source code)
unselectableTimesarray-
useHtml5ValidationEnable html 5 native validationboolean-
From config

{
   "useHtml5Validation": true
}
v-modeldate-
validationMessageThe message which is shown when a validation error occursstring-

Events

Event namePropertiesDescription
blur
focus
invalid
update:modelValue

Slots

NameDescriptionBindings
trigger
default

Style

📄 Full scss file

CSS VariableSASS VariableDefault
--oruga-timepicker-font-size$timepicker-font-size$base-font-size
--oruga-timepicker-box-line-height$timepicker-box-line-height$base-line-height
--oruga-timepicker-box-padding$timepicker-box-padding.375rem 1rem
--oruga-timepicker-footer-padding$timepicker-footer-padding0 .5rem
--oruga-timepicker-footer-margin$timepicker-footer-margin0.875rem 0 0 0
--oruga-timepicker-select-line-height$timepicker-select-line-height$base-line-height
--oruga-timepicker-select-padding$timepicker-select-padding$control-padding-vertical $control-padding-horizontal
--oruga-timepicker-select-color$timepicker-select-color#363636
--oruga-timepicker-select-font-weight$timepicker-select-font-weight600
--oruga-timepicker-select-placeholder-opacity$timepicker-select-placeholder-opacity$base-disabled-opacity
--oruga-timepicker-separator-font-weight$timepicker-separator-font-weight600

Released under the MIT License.