Skip to content

Instantly share code, notes, and snippets.

@Guiqft
Created February 15, 2021 22:50
Show Gist options
  • Save Guiqft/1a0853dddd813ce78fa1a570c5d2ea03 to your computer and use it in GitHub Desktop.
Save Guiqft/1a0853dddd813ce78fa1a570c5d2ea03 to your computer and use it in GitHub Desktop.
Snippet for create Vue.js component with Typescript and Sass
{
"Vue Component": {
"prefix": "vc",
"body": [
"<template>",
"\t<div class=\"${name}-container\">",
"\t\t${name}",
"\t</div>",
"</template>",
"",
"<script lang=\"ts\">",
"import { defineComponent } from '@vue/composition-api'",
"",
"export default defineComponent({",
"\tname: '${name}'",
"})",
"</script>",
"",
"<style lang=\"scss\" scoped>",
".${name}-container {",
"\tdisplay: flex;",
"}",
"</style>"
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment