ura-components/.vscode/star.code-snippets

38 lines
812 B
Plaintext

{
"Star Element Template": {
"scope": "javascript,typescript,css",
"prefix": [
"staret",
],
"body": [
"import { html, css, LitElement } from 'lit'",
"import { customElement, property, state } from 'lit/decorators.js'",
"",
"@customElement('$1')",
"export class $0 extends LitElement {",
" @property()",
" foo = ''",
"",
" @state()",
" bar = ''",
"",
" render() {",
" return html`",
" ",
" `",
" }",
"",
" static styles = css`",
" ",
" `",
"}",
"",
"declare global {",
" interface HTMLElementTagNameMap {",
" '$1': $0",
" }",
"}",
],
"description": "Insert Star Web Component Template"
},
}