Vue Time Picker
Simple, no nonsense time picker built and optimized for Vue.
Installation
Yarn
yarn add -D @tygr/vue-time-picker
Browser
- Charset attribute required
Usage
Time format is h:mm A
Props
prop | type | default | description |
---|---|---|---|
am-color | string | 'green' | Color of the slider when 'AM' is chosen |
pm-color | string | 'blue' | Color of the slider when 'PM' is chosen |
value | string | '12:00 AM' | The value of the time picker. (used by v-model) |
mobile-query | string | 'only screen and (max-width : 839px)' | Media query used to check if mobile user |
Events
event | payload | description |
---|---|---|
input | string | Time selected (used by v-model) |