Vuetify component tweaks for v2.
Note: this library works only with Vue2
- Add this package to your dependencies
$ npm i -S @tabianco/vuetify-components @tabianco/vue-inherit-component
# or
$ yarn add @tabianco/vuetify-components @tabianco/vue-inherit-component
- Use in your component
.vue
file
import { genInput } from '@tabianco/vuetify-components'
A full example creating a component inheriting VTextField
.
import { VTextField } from 'vuetify/lib'
import { genInput } from '@tabianco/vuetify-components'
export default genInput(VTextField, {
readonlyProps (props) {
return {
color: props.dark ? 'white' : 'primary'
}
},
regularProps: {
color: 'primary'
}
})
MIT - Tabian Co.