forked from MarsX-dev/floatui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsupportedFrameworksJSON.ts
203 lines (201 loc) · 8.23 KB
/
supportedFrameworksJSON.ts
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
export default [
{
code: `<div class="max-w-2xl mx-auto px-4">
<div class="items-start justify-between sm:flex">
<div>
<h4 class="text-gray-800 text-xl font-semibold">Team members</h4>
<p class="mt-2 text-gray-600 text-base sm:text-sm">Give your team members access to manage the system.</p>
</div>
<a href="javascript:void(0)" class="inline-flex items-center justify-center gap-1 py-2 px-3 mt-2 font-medium text-sm text-center text-white bg-indigo-600 hover:bg-indigo-500 active:bg-indigo-700 rounded-lg sm:mt-0">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6">
<path stroke-linecap="round" stroke-linejoin="round" d="M12 6v12m6-6H6" />
</svg>
New member
</a>
</div>
<ul class="mt-12 divide-y">
<!-- Repeat this block for each member -->
<li class="py-5">
<div class="flex gap-3">
<img src="https://api.uifaces.co/our-content/donated/xZ4wg2Xj.jpg" class="flex-none w-12 h-12 rounded-full" alt="John lorin's avatar">
<div>
<span class="block text-sm text-gray-700 font-semibold">John lorin</span>
<span class="block text-sm text-gray-600">[email protected]</span>
</div>
</div>
</li>
<!-- Repeat the above block for each member in your 'members' array -->
</ul>
</div>`,
value: "html",
},
{
code: `const members = [
{
avatar: "https://api.uifaces.co/our-content/donated/xZ4wg2Xj.jpg",
name: "John lorin",
email: "[email protected]"
}, {
avatar: "https://randomuser.me/api/portraits/men/86.jpg",
name: "Chris bondi",
email: "[email protected]"
}, {
avatar: "https://images.unsplash.com/photo-1464863979621-258859e62245?ixlib=rb-1.2.1&q=80&fm=jpg&crop=faces&fit=crop&h=200&w=200&ixid=eyJhcHBfaWQiOjE3Nzg0fQ",
name: "yasmine",
email: "[email protected]"
}, {
avatar: "https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?ixlib=rb-0.3.5&q=80&fm=jpg&crop=faces&fit=crop&h=200&w=200&s=a72ca28288878f8404a795f39642a46f",
name: "Joseph",
email: "[email protected]"
},
]
export default () => (
<div className="max-w-2xl mx-auto px-4">
<div className="items-start justify-between sm:flex">
<div>
<h4 className="text-gray-800 text-xl font-semibold">Team members</h4>
<p className="mt-2 text-gray-600 text-base sm:text-sm">Give your team members access to manage the system.</p>
</div>
<a href="javascript:void(0)" className="inline-flex items-center justify-center gap-1 py-2 px-3 mt-2 font-medium text-sm text-center text-white bg-indigo-600 hover:bg-indigo-500 active:bg-indigo-700 rounded-lg sm:mt-0">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" strokeWidth={1.5} stroke="currentColor" className="w-6 h-6">
<path strokeLinecap="round" strokeLinejoin="round" d="M12 6v12m6-6H6" />
</svg>
New member
</a>
</div>
<ul className="mt-12 divide-y">
{
members.map((item, idx) => (
<li key={idx} className="py-5">
<div className="flex gap-3">
<img src={item.avatar} className="flex-none w-12 h-12 rounded-full" />
<div>
<span className="block text-sm text-gray-700 font-semibold">{item.name}</span>
<span className="block text-sm text-gray-600">{item.email}</span>
</div>
</div>
</li>
))
}
</ul>
</div>
)`,
value: "react",
},
{
code: `<template>
<div class="max-w-2xl mx-auto px-4">
<div class="items-start justify-between sm:flex">
<div>
<h4 class="text-gray-800 text-xl font-semibold">Team members</h4>
<p class="mt-2 text-gray-600 text-base sm:text-sm">Give your team members access to manage the system.</p>
</div>
<a href="javascript:void(0)" class="inline-flex items-center justify-center gap-1 py-2 px-3 mt-2 font-medium text-sm text-center text-white bg-indigo-600 hover:bg-indigo-500 active:bg-indigo-700 rounded-lg sm:mt-0">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" :stroke-width="1.5" stroke="currentColor" class="w-6 h-6">
<path stroke-linecap="round" stroke-linejoin="round" d="M12 6v12m6-6H6" />
</svg>
New member
</a>
</div>
<ul class="mt-12 divide-y">
<li v-for="(item, idx) in members" :key="idx" class="py-5">
<div class="flex gap-3">
<img :src="item.avatar" class="flex-none w-12 h-12 rounded-full" :alt="item.name + ' avatar'" />
<div>
<span class="block text-sm text-gray-700 font-semibold">{{ item.name }}</span>
<span class="block text-sm text-gray-600">{{ item.email }}</span>
</div>
</div>
</li>
</ul>
</div>
</template>
<script>
export default {
data() {
return {
members: [
{
avatar: "https://api.uifaces.co/our-content/donated/xZ4wg2Xj.jpg",
name: "John lorin",
email: "[email protected]",
},
{
avatar: "https://randomuser.me/api/portraits/men/86.jpg",
name: "Chris bondi",
email: "[email protected]",
},
{
avatar: "https://images.unsplash.com/photo-1464863979621-258859e62245?ixlib=rb-1.2.1&q=80&fm=jpg&crop=faces&fit=crop&h=200&w=200&ixid=eyJhcHBfaWQiOjE3Nzg0fQ",
name: "yasmine",
email: "[email protected]",
},
{
avatar: "https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?ixlib=rb-0.3.5&q=80&fm=jpg&crop=faces&fit=crop&h=200&w=200&s=a72ca28288878f8404a795f39642a46f",
name: "Joseph",
email: "[email protected]",
},
],
};
},
};
</script>`,
value: "vue",
},
{
code: `<script>
// Define the 'members' array
let members = [
{
avatar: "https://api.uifaces.co/our-content/donated/xZ4wg2Xj.jpg",
name: "John lorin",
email: "[email protected]"
},
{
avatar: "https://randomuser.me/api/portraits/men/86.jpg",
name: "Chris bondi",
email: "[email protected]"
},
{
avatar: "https://images.unsplash.com/photo-1464863979621-258859e62245?ixlib=rb-1.2.1&q=80&fm=jpg&crop=faces&fit=crop&h=200&w=200&ixid=eyJhcHBfaWQiOjE3Nzg0fQ",
name: "yasmine",
email: "[email protected]"
},
{
avatar: "https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?ixlib=rb-0.3.5&q=80&fm=jpg&crop=faces&fit=crop&h=200&w=200&s=a72ca28288878f8404a795f39642a46f",
name: "Joseph",
email: "[email protected]"
},
];
</script>
<div class="max-w-2xl mx-auto px-4">
<div class="items-start justify-between sm:flex">
<div>
<h4 class="text-gray-800 text-xl font-semibold">Team members</h4>
<p class="mt-2 text-gray-600 text-base sm:text-sm">Give your team members access to manage the system.</p>
</div>
<a href="javascript:void(0)" class="inline-flex items-center justify-center gap-1 py-2 px-3 mt-2 font-medium text-sm text-center text-white bg-indigo-600 hover:bg-indigo-500 active:bg-indigo-700 rounded-lg sm:mt-0">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6">
<path stroke-linecap="round" stroke-linejoin="round" d="M12 6v12m6-6H6" />
</svg>
New member
</a>
</div>
<ul class="mt-12 divide-y">
{#each members as item, idx}
<li class="py-5" key={idx}>
<div class="flex gap-3">
<img src={item.avatar} class="flex-none w-12 h-12 rounded-full" alt="{item.name} avatar" />
<div>
<span class="block text-sm text-gray-700 font-semibold">{item.name}</span>
<span class="block text-sm text-gray-600">{item.email}</span>
</div>
</div>
</li>
{/each}
</ul>
</div>`,
value: "svelte",
},
];