Skip to content

Instantly share code, notes, and snippets.

@AnandShiva
Created July 6, 2020 11:33
Show Gist options
  • Save AnandShiva/1ca3e621cd8355a57a351d8d1f185d79 to your computer and use it in GitHub Desktop.
Save AnandShiva/1ca3e621cd8355a57a351d8d1f185d79 to your computer and use it in GitHub Desktop.
Importing and registering a component in sample consumption project
<template>
<div id="app">
<my-button text='Hello Vue Expert !'>
</my-button>
</div>
</template>
<script>
// const libCss = require('vue-library-demo-medium/dist/cssfile.css')
import vueLibrary from 'vue-library-demo-medium';
export default {
name: 'App',
components: {
myButton: vueLibrary.myButton
}
}
</script>
<style>
#app {
font-family: Avenir, Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-align: center;
color: #2c3e50;
margin-top: 60px;
}
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment