forked from ExEr7um/vue3-vscode-snippets
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhistoire.code-snippets
54 lines (54 loc) · 1.21 KB
/
histoire.code-snippets
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
{
"Histoire story base": {
"prefix": "hbase",
"body": [
"<script setup lang=\"ts\">",
"",
"</script>",
"",
"<template>",
"\t<Story title='${1:storyTitle}'>",
"\t\t$0",
"\t</Story>",
"</template>",
],
"description": "Base code for story"
},
"Histoire story base with variant": {
"prefix": "hbase-variant",
"body": [
"<script setup lang=\"ts\">",
"",
"</script>",
"",
"<template>",
"\t<Story title='${1:storyTitle}'>",
"\t\t<Variant title='${2:variantTitle}'>",
"\t\t\t$0",
"\t\t</Variant>",
"\t</Story>",
"</template>",
],
"description": "Base code for story with variant"
},
"Histoire story base with grid layout": {
"prefix": "hbase-grid",
"body": [
"<script setup lang=\"ts\">",
"",
"</script>",
"",
"<template>",
"\t<Story",
"\t\ttitle='${1:storyTitle}'",
"\t\t:layout='{ type: 'grid', width: 300 }'",
"\t/>",
"\t\t<Variant title='${2:variantTitle}'>",
"\t\t\t$0",
"\t\t</Variant>",
"\t</Story>",
"</template>",
],
"description": "Base code for story with grid layout"
},
}