vue-da-button-component
v0.0.4
Published
This repo has an Vue Single Page Component, created using the [this](https://github.com/team-innovation/vue-sfc-rollup) rollup.
Downloads
9
Readme
Vue DA Button Component
This repo has an Vue Single Page Component, created using the this rollup.
How this project was created.
- Install vue-sfc-rollup globally
yarn global add vue-sfc-rollup
- Initiate sfc project
sfc-init
- Run, Build, Publish
# Fill in prompts
cd path/to/my-component-or-lib
yarn install
# Do dev stuff
yarn serve
# Run build process
yarn build
# Publish
yarn login
yarn publish
How to use this component
- Install the component with npm or yarn
npm i vue-da-button-component
- Import on your .vue component
<template>
<!-- use the component on template -->
<CustomButton text="Click me!!!" />
</template>
<script>
// import the lib here
import CustomButton from 'vue-da-button-component'
export default {
name: 'App',
components: { // register component
CustomButton
}
}
</script>