vue-da-button-component
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

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>

Readme

Keywords

none

Package Sidebar

Install

npm i vue-da-button-component

Weekly Downloads

1

Version

0.0.4

License

none

Unpacked Size

3.29 kB

Total Files

6

Last publish

Collaborators

  • diego-alves