Socket
Book a DemoInstallSign in
Socket

vue-common-components

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-common-components

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

latest
Source
npmnpm
Version
0.0.17
Version published
Maintainers
1
Created
Source

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.

 

Keywords

vue

FAQs

Package last updated on 03 Nov 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts