Skip to content

Instantly share code, notes, and snippets.

@lmartim
Last active October 1, 2021 03:21
Show Gist options
  • Save lmartim/accabaf0772d94f7a4ce90978cab2705 to your computer and use it in GitHub Desktop.
Save lmartim/accabaf0772d94f7a4ce90978cab2705 to your computer and use it in GitHub Desktop.
File example with component from library
<template>
<section>
<h1>Hello World in New Project</h1>
<Button label="Button Label in New Project" type="primary" size="lg" />
</section>
</template>
<script>
import { defineComponent } from "vue";
import { Button } from "your-npm-package-name";
export default defineComponent({
name: "HelloWorld",
components: {
Button,
},
});
</script>
<style lang="scss">
h1 {
color: $color-danger-medium;
}
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment