0.0.17 • Published 4 years ago

vue-common-components v0.0.17

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

vue-common-components

Global basic components for your Vue.js/Nuxt.js project

npm version npm downloads

 

Visit website and documentation.

 

Getting started

1. Install the dependency.

yarn add --dev vue-common-components
npm i vue-common-components

2. Init the plugin.

If you are using Vue.js:

// main.js
import Vue from 'vue'
import VueCommonComponents from 'vue-common-components'
Vue.use(VueCommonComponents, {
  // custom options here
})

If you are using Nuxt.js:
The plugin inits automatically, you just have to add it in nuxt config:

// nuxt.config.js
export default {
  plugins: [
    'node_modules/vue-common-components'
  ],
  commonComponents: {
    // custom options here
  }
}

3. Use common components everywhere in project:

// any component or page
<template>
  <div class="your-any-component">
    <common-button>Button</common-button>
  </div>
</template>

<script>
export default {
  // No need to import common components
}
</script>

 

Visit website and documentation.

 

0.0.17

4 years ago

0.0.16

4 years ago

0.0.15

4 years ago

0.0.14

4 years ago

0.0.13

4 years ago

0.0.10

4 years ago

0.0.11

4 years ago

0.0.12

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago