GithubHelp home page GithubHelp logo

gkshi / vue-common-components Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 7.21 MB

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

Home Page: https://gkshi.github.io/vue-common-components/

License: Other

JavaScript 28.99% Vue 65.61% SCSS 5.41%
vuejs nuxtjs boilerplate template component components button input textarea modal

vue-common-components's Introduction

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.

 

vue-common-components's People

Contributors

dependabot[bot] avatar gkshi avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.