-
Notifications
You must be signed in to change notification settings - Fork 0
/
tabs.html
441 lines (429 loc) · 17.1 KB
/
tabs.html
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
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link href="tailwind_theme/tailwind.css" rel="stylesheet" type="text/css" />
<title>Flowbite Tabs</title>
</head>
<body>
<header>
<div
class="flex items-center w-full px-10 mx-auto bg-white dark:bg-gray-900"
>
<h1 class="text-3xl text-gray-900 dark:text-white">
Flowbite Components
</h1>
</div>
</header>
<section
class="flex flex-col items-center w-full px-5 mx-auto bg-gray-100 dark:bg-gray-900"
>
<div class="flex flex-col items-center gap-3 mb-2">
<h2 class="text-3xl text-gray-900 dark:text-white">Tabs</h2>
<h3 class="text-2xl text-gray-900 dark:text-white">Default Tabs</h3>
</div>
<ul
class="flex flex-wrap text-sm font-medium text-center text-gray-500 border-b border-gray-200 flowbite dark:border-gray-700 dark:text-gray-400"
>
<li class="mr-2">
<a
href="#"
aria-current="page"
class="inline-block p-4 text-blue-600 bg-gray-100 rounded-t-lg active dark:bg-gray-800 dark:text-blue-500"
>Profile</a
>
</li>
<li class="mr-2">
<a
href="#"
class="inline-block p-4 rounded-t-lg hover:text-gray-600 hover:bg-gray-50 dark:hover:bg-gray-800 dark:hover:text-gray-300"
>Dashboard</a
>
</li>
<li class="mr-2">
<a
href="#"
class="inline-block p-4 rounded-t-lg hover:text-gray-600 hover:bg-gray-50 dark:hover:bg-gray-800 dark:hover:text-gray-300"
>Settings</a
>
</li>
<li class="mr-2">
<a
href="#"
class="inline-block p-4 rounded-t-lg hover:text-gray-600 hover:bg-gray-50 dark:hover:bg-gray-800 dark:hover:text-gray-300"
>Contacts</a
>
</li>
<li>
<a
class="inline-block p-4 text-gray-400 rounded-t-lg cursor-not-allowed dark:text-gray-500"
>Disabled</a
>
</li>
</ul>
<div class="flex flex-col items-center gap-1 my-10">
<h3 class="text-2xl text-gray-900 dark:text-white">
Tabs with underline
</h3>
</div>
<div
class="text-sm font-medium text-center text-gray-500 border-b border-gray-200 flowbite dark:text-gray-400 dark:border-gray-700"
>
<ul class="flex flex-wrap -mb-px">
<li class="mr-2">
<a
href="#"
class="inline-block p-4 border-b-2 border-transparent rounded-t-lg hover:text-gray-600 hover:border-gray-300 dark:hover:text-gray-300"
>Profile</a
>
</li>
<li class="mr-2">
<a
href="#"
class="inline-block p-4 text-blue-600 border-b-2 border-blue-600 rounded-t-lg active dark:text-blue-500 dark:border-blue-500"
aria-current="page"
>Dashboard</a
>
</li>
<li class="mr-2">
<a
href="#"
class="inline-block p-4 border-b-2 border-transparent rounded-t-lg hover:text-gray-600 hover:border-gray-300 dark:hover:text-gray-300"
>Settings</a
>
</li>
<li class="mr-2">
<a
href="#"
class="inline-block p-4 border-b-2 border-transparent rounded-t-lg hover:text-gray-600 hover:border-gray-300 dark:hover:text-gray-300"
>Contacts</a
>
</li>
<li>
<a
class="inline-block p-4 text-gray-400 rounded-t-lg cursor-not-allowed dark:text-gray-500"
>Disabled</a
>
</li>
</ul>
</div>
<div class="flex flex-col items-center gap-1 my-10">
<h3 class="text-2xl text-gray-900 dark:text-white">Tabs with icons</h3>
</div>
<div class="border-b border-gray-200 flowbite dark:border-gray-700">
<ul
class="flex flex-wrap -mb-px text-sm font-medium text-center text-gray-500 dark:text-gray-400"
>
<li class="mr-2">
<a
href="#"
class="inline-flex p-4 border-b-2 border-transparent rounded-t-lg hover:text-gray-600 hover:border-gray-300 dark:hover:text-gray-300 group"
>
<svg
aria-hidden="true"
class="w-5 h-5 mr-2 text-gray-400 group-hover:text-gray-500 dark:text-gray-500 dark:group-hover:text-gray-300"
fill="currentColor"
viewBox="0 0 20 20"
xmlns="http://www.w3.org/2000/svg"
>
<path
fill-rule="evenodd"
d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-6-3a2 2 0 11-4 0 2 2 0 014 0zm-2 4a5 5 0 00-4.546 2.916A5.986 5.986 0 0010 16a5.986 5.986 0 004.546-2.084A5 5 0 0010 11z"
clip-rule="evenodd"
></path></svg
>Profile
</a>
</li>
<li class="mr-2">
<a
href="#"
class="inline-flex p-4 text-blue-600 border-b-2 border-blue-600 rounded-t-lg active dark:text-blue-500 dark:border-blue-500 group"
aria-current="page"
>
<svg
aria-hidden="true"
class="w-5 h-5 mr-2 text-blue-600 dark:text-blue-500"
fill="currentColor"
viewBox="0 0 20 20"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M5 3a2 2 0 00-2 2v2a2 2 0 002 2h2a2 2 0 002-2V5a2 2 0 00-2-2H5zM5 11a2 2 0 00-2 2v2a2 2 0 002 2h2a2 2 0 002-2v-2a2 2 0 00-2-2H5zM11 5a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2V5zM11 13a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2v-2z"
></path></svg
>Dashboard
</a>
</li>
<li class="mr-2">
<a
href="#"
class="inline-flex p-4 border-b-2 border-transparent rounded-t-lg hover:text-gray-600 hover:border-gray-300 dark:hover:text-gray-300 group"
>
<svg
aria-hidden="true"
class="w-5 h-5 mr-2 text-gray-400 group-hover:text-gray-500 dark:text-gray-500 dark:group-hover:text-gray-300"
fill="currentColor"
viewBox="0 0 20 20"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M5 4a1 1 0 00-2 0v7.268a2 2 0 000 3.464V16a1 1 0 102 0v-1.268a2 2 0 000-3.464V4zM11 4a1 1 0 10-2 0v1.268a2 2 0 000 3.464V16a1 1 0 102 0V8.732a2 2 0 000-3.464V4zM16 3a1 1 0 011 1v7.268a2 2 0 010 3.464V16a1 1 0 11-2 0v-1.268a2 2 0 010-3.464V4a1 1 0 011-1z"
></path></svg
>Settings
</a>
</li>
<li class="mr-2">
<a
href="#"
class="inline-flex p-4 border-b-2 border-transparent rounded-t-lg hover:text-gray-600 hover:border-gray-300 dark:hover:text-gray-300 group"
>
<svg
aria-hidden="true"
class="w-5 h-5 mr-2 text-gray-400 group-hover:text-gray-500 dark:text-gray-500 dark:group-hover:text-gray-300"
fill="currentColor"
viewBox="0 0 20 20"
xmlns="http://www.w3.org/2000/svg"
>
<path d="M9 2a1 1 0 000 2h2a1 1 0 100-2H9z"></path>
<path
fill-rule="evenodd"
d="M4 5a2 2 0 012-2 3 3 0 003 3h2a3 3 0 003-3 2 2 0 012 2v11a2 2 0 01-2 2H6a2 2 0 01-2-2V5zm3 4a1 1 0 000 2h.01a1 1 0 100-2H7zm3 0a1 1 0 000 2h3a1 1 0 100-2h-3zm-3 4a1 1 0 100 2h.01a1 1 0 100-2H7zm3 0a1 1 0 100 2h3a1 1 0 100-2h-3z"
clip-rule="evenodd"
></path></svg
>Contacts
</a>
</li>
<li>
<a
class="inline-block p-4 text-gray-400 rounded-t-lg cursor-not-allowed dark:text-gray-500"
>Disabled</a
>
</li>
</ul>
</div>
<div class="flex flex-col items-center gap-1 my-10">
<h3 class="text-2xl text-gray-900 dark:text-white">Pills Tabs</h3>
</div>
<ul
class="flex flex-wrap text-sm font-medium text-center text-gray-500 flowbite dark:text-gray-400"
>
<li class="mr-2">
<a
href="#"
class="inline-block px-4 py-3 text-white bg-blue-600 rounded-lg active"
aria-current="page"
>Tab 1</a
>
</li>
<li class="mr-2">
<a
href="#"
class="inline-block px-4 py-3 rounded-lg hover:text-gray-900 hover:bg-gray-100 dark:hover:bg-gray-800 dark:hover:text-white"
>Tab 2</a
>
</li>
<li class="mr-2">
<a
href="#"
class="inline-block px-4 py-3 rounded-lg hover:text-gray-900 hover:bg-gray-100 dark:hover:bg-gray-800 dark:hover:text-white"
>Tab 3</a
>
</li>
<li class="mr-2">
<a
href="#"
class="inline-block px-4 py-3 rounded-lg hover:text-gray-900 hover:bg-gray-100 dark:hover:bg-gray-800 dark:hover:text-white"
>Tab 4</a
>
</li>
<li>
<a
class="inline-block px-4 py-3 text-gray-400 cursor-not-allowed dark:text-gray-500"
>Tab 5</a
>
</li>
</ul>
<div class="flex flex-col items-center gap-1 my-10">
<h3 class="text-2xl text-gray-900 dark:text-white">Full width Tabs</h3>
</div>
<div class="flowbite">
<div class="sm:hidden">
<label for="tabs" class="sr-only">Select your country</label>
<select
id="tabs"
class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"
>
<option>Profile</option>
<option>Canada</option>
<option>France</option>
<option>Germany</option>
</select>
</div>
<ul
class="hidden text-sm font-medium text-center text-gray-500 divide-x divide-gray-200 rounded-lg shadow sm:flex dark:divide-gray-700 dark:text-gray-400"
>
<li class="w-full">
<a
href="#"
class="inline-block w-full p-4 text-gray-900 bg-gray-100 rounded-l-lg focus:ring-4 focus:ring-blue-300 active focus:outline-none dark:bg-gray-700 dark:text-white"
aria-current="page"
>Profile</a
>
</li>
<li class="w-full">
<a
href="#"
class="inline-block w-full p-4 bg-white hover:text-gray-700 hover:bg-gray-50 focus:ring-4 focus:ring-blue-300 focus:outline-none dark:hover:text-white dark:bg-gray-800 dark:hover:bg-gray-700"
>Dashboard</a
>
</li>
<li class="w-full">
<a
href="#"
class="inline-block w-full p-4 bg-white hover:text-gray-700 hover:bg-gray-50 focus:ring-4 focus:ring-blue-300 focus:outline-none dark:hover:text-white dark:bg-gray-800 dark:hover:bg-gray-700"
>Settings</a
>
</li>
<li class="w-full">
<a
href="#"
class="inline-block w-full p-4 bg-white rounded-r-lg hover:text-gray-700 hover:bg-gray-50 focus:ring-4 focus:outline-none focus:ring-blue-300 dark:hover:text-white dark:bg-gray-800 dark:hover:bg-gray-700"
>Invoice</a
>
</li>
</ul>
</div>
<div class="flex flex-col items-center gap-1 my-10">
<h3 class="text-2xl text-gray-900 dark:text-white">Interactive Tabs</h3>
</div>
<div class="flowbite">
<div class="mb-4 border-b border-gray-200 dark:border-gray-700">
<ul
class="flex flex-wrap -mb-px text-sm font-medium text-center"
id="myTab"
data-tabs-toggle="#myTabContent"
role="tablist"
>
<li class="mr-2" role="presentation">
<button
class="inline-block p-4 border-b-2 rounded-t-lg"
id="profile-tab"
data-tabs-target="#profile"
type="button"
role="tab"
aria-controls="profile"
aria-selected="false"
>
Profile
</button>
</li>
<li class="mr-2" role="presentation">
<button
class="inline-block p-4 border-b-2 border-transparent rounded-t-lg hover:text-gray-600 hover:border-gray-300 dark:hover:text-gray-300"
id="dashboard-tab"
data-tabs-target="#dashboard"
type="button"
role="tab"
aria-controls="dashboard"
aria-selected="false"
>
Dashboard
</button>
</li>
<li class="mr-2" role="presentation">
<button
class="inline-block p-4 border-b-2 border-transparent rounded-t-lg hover:text-gray-600 hover:border-gray-300 dark:hover:text-gray-300"
id="settings-tab"
data-tabs-target="#settings"
type="button"
role="tab"
aria-controls="settings"
aria-selected="false"
>
Settings
</button>
</li>
<li role="presentation">
<button
class="inline-block p-4 border-b-2 border-transparent rounded-t-lg hover:text-gray-600 hover:border-gray-300 dark:hover:text-gray-300"
id="contacts-tab"
data-tabs-target="#contacts"
type="button"
role="tab"
aria-controls="contacts"
aria-selected="false"
>
Contacts
</button>
</li>
</ul>
</div>
<div id="myTabContent">
<div
class="hidden p-4 rounded-lg bg-gray-50 dark:bg-gray-800"
id="profile"
role="tabpanel"
aria-labelledby="profile-tab"
>
<p class="text-sm text-gray-500 dark:text-gray-400">
This is some placeholder content the
<strong class="font-medium text-gray-800 dark:text-white"
>Profile tab's associated content</strong
>. Clicking another tab will toggle the visibility of this one for
the next. The tab JavaScript swaps classes to control the content
visibility and styling.
</p>
</div>
<div
class="hidden p-4 rounded-lg bg-gray-50 dark:bg-gray-800"
id="dashboard"
role="tabpanel"
aria-labelledby="dashboard-tab"
>
<p class="text-sm text-gray-500 dark:text-gray-400">
This is some placeholder content the
<strong class="font-medium text-gray-800 dark:text-white"
>Dashboard tab's associated content</strong
>. Clicking another tab will toggle the visibility of this one for
the next. The tab JavaScript swaps classes to control the content
visibility and styling.
</p>
</div>
<div
class="hidden p-4 rounded-lg bg-gray-50 dark:bg-gray-800"
id="settings"
role="tabpanel"
aria-labelledby="settings-tab"
>
<p class="text-sm text-gray-500 dark:text-gray-400">
This is some placeholder content the
<strong class="font-medium text-gray-800 dark:text-white"
>Settings tab's associated content</strong
>. Clicking another tab will toggle the visibility of this one for
the next. The tab JavaScript swaps classes to control the content
visibility and styling.
</p>
</div>
<div
class="hidden p-4 rounded-lg bg-gray-50 dark:bg-gray-800"
id="contacts"
role="tabpanel"
aria-labelledby="contacts-tab"
>
<p class="text-sm text-gray-500 dark:text-gray-400">
This is some placeholder content the
<strong class="font-medium text-gray-800 dark:text-white"
>Contacts tab's associated content</strong
>. Clicking another tab will toggle the visibility of this one for
the next. The tab JavaScript swaps classes to control the content
visibility and styling.
</p>
</div>
</div>
</div>
</section>
<script src="./node_modules/flowbite/dist/flowbite.js"></script>
</body>
</html>
<!--<div class="flex flex-col gap-3"></div> -->