0.0.4 • Published 3 years ago

vue-da-button-component v0.0.4

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

Vue DA Button Component

This repo has an Vue Single Page Component, created using the this rollup.

How this project was created.

  1. Install vue-sfc-rollup globally
yarn global add vue-sfc-rollup
  1. Initiate sfc project
sfc-init
  1. 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

  1. Install the component with npm or yarn
npm i vue-da-button-component
  1. 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>
0.0.3

3 years ago

0.0.4

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago