A Pikaday wrapper for Vue.js 2.
npm install --save @idecardo/vue-pikaday
import Pikaday from '@idecardo/vue-pikaday'
// Import your preferred pikaday style/theme.
import 'pikaday/css/pikaday.css'
export default {
components: {
Pikaday,
},
data: () => ({
date: '2018-10-05',
settings: {
firstDay: 3,
},
}),
}
<pikaday v-model="date"></pikaday>
<pikaday v-model="date" :settings="settings"></pikaday>
// You can also import your preferred style/theme in your main SASS file or your component's <style lang="scss"/> section.
@import "~pikaday/scss/pikaday.scss";