-
Notifications
You must be signed in to change notification settings - Fork 0
/
web-types.json
80 lines (80 loc) · 2.38 KB
/
web-types.json
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
{
"$schema": "http://json.schemastore.org/web-types",
"name": "project",
"framework": "vue",
"version": "0.0.0",
"contributions": {
"html": {
"elements": [
{
"name": "VNuxtImage",
"description": "A simple wrapper of v-img that optimizes the image source by default.",
"attributes": [
{
"name": "fit",
"customType": "select",
"default": "cover",
"options": ["cover", "contain", "fill", "inside", "outside"]
}
]
},
{
"name": "BaseButtonDemo",
"description": "Note, this is not a real component in this project, added here just to show an example of how it is defined in web-types.",
"attributes": [
{
"name": "label",
"placeholder": "My Button"
},
{
"name": "size",
"customType": "select",
"default": "sm",
"options": ["2xs", "xs", "sm", "md", "lg", "xl"]
},
{
"name": "variant",
"customType": "select",
"default": "solid",
"options": ["solid", "outline", "soft", "ghost", "link"]
},
{
"name": "target",
"customType": "select",
"default": "",
"options": ["_blank"]
}
],
"slots": [
{
"name": "default",
"description": "The default Vue slot.",
"vue-properties": [
{
"name": "disabled-demo",
"description": "Whether or not the Button is disabled. Note, this is not a real slot prop, added here just to show an example of how it is defined in web-types.",
"type": "Boolean"
}
]
},
{
"name": "leading",
"description": "Use the #leading slot to set the content of the leading icon."
},
{
"name": "trailing",
"description": "Use the #trailing slot to set the content of the trailing icon."
}
]
}
],
"attributes": [
{
"name": "color",
"customType": "select",
"options": []
}
]
}
}
}