-
Notifications
You must be signed in to change notification settings - Fork 0
/
web-types.json
106 lines (106 loc) · 2.89 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
{
"$schema": "http://json.schemastore.org/web-types",
"name": "project",
"framework": "project",
"version": "0.0.0",
"contributions": {
"html": {
"elements": [
{
"name": "BaseIcon",
"attributes": [
{
"name": "name",
"customType": "icon",
"placeholder": "i-line-md-iconify1"
},
{
"name": "width",
"customType": "select",
"default": "24px",
"options": [
"12px",
"16px",
"20px",
"24px",
"28px",
"32px",
"36px"
]
},
{
"name": "height",
"customType": "select",
"default": "24px",
"options": [
"12px",
"16px",
"20px",
"24px",
"28px",
"32px",
"36px"
]
}
]
},
{
"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": []
}
]
}
}
}