@tabianco/vuetify-components
TypeScript icon, indicating that this package has built-in type declarations

2.1.0 • Public • Published

@tabianco/vuetify-components

GitHub Actions npm (scoped with tag) npm

Vuetify component tweaks for v2.

Note: this library works only with Vue2

Usage

  1. 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
  1. Use in your component .vue file
import { genInput } from '@tabianco/vuetify-components'

Full example

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'
  }
})

License

MIT - Tabian Co.

Readme

Keywords

none

Package Sidebar

Install

npm i @tabianco/vuetify-components

Weekly Downloads

3

Version

2.1.0

License

MIT

Unpacked Size

7.17 kB

Total Files

7

Last publish

Collaborators

  • kulikala