flowbite-mcp 1.1.3 → 1.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/README.md +49 -74
  2. package/build/index.js +20 -36
  3. package/data/components/accordion.md +39 -53
  4. package/data/components/alerts.md +27 -44
  5. package/data/components/avatar.md +20 -33
  6. package/data/components/badge.md +34 -47
  7. package/data/components/banner.md +10 -29
  8. package/data/components/bottom-navigation.md +16 -29
  9. package/data/components/breadcrumb.md +12 -25
  10. package/data/components/button-group.md +26 -39
  11. package/data/components/buttons.md +41 -67
  12. package/data/components/card.md +34 -47
  13. package/data/components/carousel.md +25 -39
  14. package/data/components/chat-bubble.md +36 -50
  15. package/data/components/clipboard.md +256 -252
  16. package/data/components/datepicker.md +56 -70
  17. package/data/components/device-mockups.md +16 -29
  18. package/data/components/drawer.md +42 -56
  19. package/data/components/dropdowns.md +66 -80
  20. package/data/components/footer.md +16 -29
  21. package/data/components/forms.md +32 -50
  22. package/data/components/gallery.md +16 -33
  23. package/data/components/indicators.md +18 -31
  24. package/data/components/jumbotron.md +12 -25
  25. package/data/components/kbd.md +14 -27
  26. package/data/components/list-group.md +14 -27
  27. package/data/components/mega-menu.md +10 -24
  28. package/data/components/modal.md +37 -51
  29. package/data/components/navbar.md +41 -55
  30. package/data/components/pagination.md +22 -35
  31. package/data/components/popover.md +36 -51
  32. package/data/components/progress.md +10 -23
  33. package/data/components/qr-code.md +41 -133
  34. package/data/components/rating.md +16 -29
  35. package/data/components/sidebar.md +15 -30
  36. package/data/components/skeleton.md +16 -29
  37. package/data/components/speed-dial.md +40 -55
  38. package/data/components/spinner.md +14 -27
  39. package/data/components/stepper.md +14 -27
  40. package/data/components/tables.md +45 -64
  41. package/data/components/tabs.md +30 -45
  42. package/data/components/timeline.md +10 -23
  43. package/data/components/toast.md +25 -39
  44. package/data/components/tooltips.md +24 -39
  45. package/data/components/typography.md +22 -35
  46. package/data/components/video.md +14 -27
  47. package/data/forms/checkbox.md +27 -43
  48. package/data/forms/file-input.md +12 -26
  49. package/data/forms/floating-label.md +12 -25
  50. package/data/forms/input-field.md +17 -32
  51. package/data/forms/number-input.md +83 -93
  52. package/data/forms/phone-input.md +42 -54
  53. package/data/forms/radio.md +23 -39
  54. package/data/forms/range.md +12 -26
  55. package/data/forms/search-input.md +14 -31
  56. package/data/forms/select.md +15 -30
  57. package/data/forms/textarea.md +8 -21
  58. package/data/forms/timepicker.md +30 -42
  59. package/data/forms/toggle.md +18 -31
  60. package/data/plugins/charts.md +542 -526
  61. package/data/plugins/datatables.md +285 -286
  62. package/data/plugins/wysiwyg.md +658 -650
  63. package/data/quickstart.md +24 -24
  64. package/data/typography/blockquote.md +24 -37
  65. package/data/typography/headings.md +30 -43
  66. package/data/typography/hr.md +10 -23
  67. package/data/typography/images.md +32 -45
  68. package/data/typography/links.md +16 -29
  69. package/data/typography/lists.md +22 -35
  70. package/data/typography/paragraphs.md +30 -43
  71. package/data/typography/text.md +42 -55
  72. package/package.json +1 -1
@@ -1,16 +1,3 @@
1
- ---
2
- layout: docs
3
- title: Tailwind CSS Alerts - Flowbite
4
- description: Show contextual information to your users using alert elements based on Tailwind CSS
5
- group: components
6
- toc: true
7
-
8
- previous: Accordion
9
- previousLink: components/accordion/
10
- next: Avatar
11
- nextLink: components/avatar/
12
- ---
13
-
14
1
  The alert component can be used to provide information to your users such as success or error messages, but also highlighted information complementing the normal flow of paragraphs and headers on a page.
15
2
 
16
3
  Flowbite also includes dismissible alerts which can be hidden by the users by clicking on the close icon.
@@ -19,7 +6,7 @@ Flowbite also includes dismissible alerts which can be hidden by the users by cl
19
6
 
20
7
  Use the following examples of alert components to show messages as feedback to your users.
21
8
 
22
- {{< example github="components/alerts.md" show_dark=true >}}
9
+ ```html
23
10
  <div class="p-4 mb-4 text-sm text-fg-brand-strong rounded-base bg-brand-softer" role="alert">
24
11
  <span class="font-medium">Info alert!</span> Change a few things up and try submitting again.
25
12
  </div>
@@ -35,13 +22,13 @@ Use the following examples of alert components to show messages as feedback to y
35
22
  <div class="p-4 text-sm text-heading rounded-base bg-neutral-secondary-medium" role="alert">
36
23
  <span class="font-medium">Dark alert!</span> Change a few things up and try submitting again.
37
24
  </div>
38
- {{< /example >}}
25
+ ```
39
26
 
40
27
  ## Alerts with icon
41
28
 
42
29
  You can also include a descriptive icon to complement the message inside the alert component with the following example.
43
30
 
44
- {{< example github="components/alerts.md" show_dark=true >}}
31
+ ```html
45
32
  <div class="flex items-start sm:items-center p-4 mb-4 text-sm text-fg-brand-strong rounded-base bg-brand-softer" role="alert">
46
33
  <svg class="w-4 h-4 me-2 shrink-0 mt-0.5 sm:mt-0" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 11h2v5m-2 0h4m-2.592-8.5h.01M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"/></svg>
47
34
  <p><span class="font-medium me-1">Info alert!</span> Change a few things up and try submitting again.</p>
@@ -62,13 +49,13 @@ You can also include a descriptive icon to complement the message inside the ale
62
49
  <svg class="w-4 h-4 me-2 shrink-0 mt-0.5 sm:mt-0" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 11h2v5m-2 0h4m-2.592-8.5h.01M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"/></svg>
63
50
  <p><span class="font-medium me-1">Dark alert!</span> Change a few things up and try submitting again.</p>
64
51
  </div>
65
- {{< /example >}}
52
+ ```
66
53
 
67
54
  ## Bordered alerts
68
55
 
69
56
  Use this example to add a border accent to the alert component instead of just a plain background.
70
57
 
71
- {{< example github="components/alerts.md" show_dark=true >}}
58
+ ```html
72
59
  <div class="flex items-start sm:items-center p-4 mb-4 text-sm text-fg-brand-strong rounded-base bg-brand-softer border border-brand-subtle" role="alert">
73
60
  <svg class="w-4 h-4 me-2 shrink-0 mt-0.5 sm:mt-0" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 11h2v5m-2 0h4m-2.592-8.5h.01M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"/></svg>
74
61
  <p><span class="font-medium me-1">Info alert!</span> Change a few things up and try submitting again.</p>
@@ -89,13 +76,13 @@ Use this example to add a border accent to the alert component instead of just a
89
76
  <svg class="w-4 h-4 me-2 shrink-0 mt-0.5 sm:mt-0" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 11h2v5m-2 0h4m-2.592-8.5h.01M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"/></svg>
90
77
  <p><span class="font-medium me-1">Dark alert!</span> Change a few things up and try submitting again.</p>
91
78
  </div>
92
- {{< /example >}}
79
+ ```
93
80
 
94
81
  ## Alerts with list
95
82
 
96
83
  Use this example to show a list and a description inside an alert component.
97
84
 
98
- {{< example github="components/alerts.md" show_dark=true >}}
85
+ ```html
99
86
  <div class="flex p-4 mb-4 text-sm text-fg-brand-strong rounded-base bg-brand-softer border border-brand-subtle" role="alert">
100
87
  <svg class="w-4 h-4 me-2 shrink-0" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 11h2v5m-2 0h4m-2.592-8.5h.01M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"/></svg>
101
88
  <span class="sr-only">Info</span>
@@ -144,17 +131,13 @@ Use this example to show a list and a description inside an alert component.
144
131
  </ul>
145
132
  </div>
146
133
  </div>
147
- {{< /example >}}
148
-
149
- <div class="mt-8 -mb-5">
150
- {{< requires_js >}}
151
- </div>
134
+ ```
152
135
 
153
136
  ## Dismissing
154
137
 
155
138
  Use the following alert elements that are also dismissible.
156
139
 
157
- {{< example github="components/alerts.md" show_dark=true >}}
140
+ ```html
158
141
  <div id="alert-1" class="flex sm:items-center p-4 mb-4 text-sm text-fg-brand-strong rounded-base bg-brand-softer" role="alert">
159
142
  <svg class="w-4 h-4 shrink-0 mt-0.5 md:mt-0" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 11h2v5m-2 0h4m-2.592-8.5h.01M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"/></svg>
160
143
  <span class="sr-only">Info</span>
@@ -210,13 +193,13 @@ Use the following alert elements that are also dismissible.
210
193
  <svg class="w-4 h-4" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18 17.94 6M18 18 6.06 6"/></svg>
211
194
  </button>
212
195
  </div>
213
- {{< /example >}}
196
+ ```
214
197
 
215
198
  ## Border accent
216
199
 
217
200
  Use this example to add a border accent on top of the alert component for further visual distinction.
218
201
 
219
- {{< example github="components/alerts.md" show_dark=true >}}
202
+ ```html
220
203
  <div id="alert-border-1" class="flex sm:items-center p-4 mb-4 text-sm text-fg-brand-strong bg-brand-softer border-t-4 border-brand-subtle" role="alert">
221
204
  <svg class="w-4 h-4 shrink-0 mt-0.5 md:mt-0" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 11h2v5m-2 0h4m-2.592-8.5h.01M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"/></svg>
222
205
  <span class="sr-only">Info</span>
@@ -272,13 +255,13 @@ Use this example to add a border accent on top of the alert component for furthe
272
255
  <svg class="w-4 h-4" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18 17.94 6M18 18 6.06 6"/></svg>
273
256
  </button>
274
257
  </div>
275
- {{< /example >}}
258
+ ```
276
259
 
277
260
  ## Additional content
278
261
 
279
262
  The following alert components can be used if you wish to disclose more information inside the element.
280
263
 
281
- {{< example github="components/alerts.md" show_dark=true >}}
264
+ ```html
282
265
  <div id="alert-additional-content-1" class="p-4 mb-4 text-sm text-fg-brand-strong rounded-base bg-brand-softer border border-brand-subtle" role="alert">
283
266
  <div class="flex items-center justify-between">
284
267
  <div class="flex items-center">
@@ -384,13 +367,13 @@ The following alert components can be used if you wish to disclose more informat
384
367
  </button>
385
368
  </div>
386
369
 
387
- {{< /example >}}
370
+ ```
388
371
 
389
372
  ## Announcement alerts
390
373
 
391
374
  Use this alert component to make announcements with a CTA link.
392
375
 
393
- {{< example github="components/alerts.md" show_dark=true >}}
376
+ ```html
394
377
  <div id="alert-small-1" class="w-auto inline-flex items-center p-1 pe-2 mb-4 text-sm text-fg-brand-strong rounded-full bg-brand-softer border border-brand-subtle" role="alert">
395
378
  <span class="bg-brand-soft text-fg-brand-strong py-0.5 px-2 rounded-full">New</span>
396
379
  <div class="ms-2 text-sm">
@@ -430,7 +413,7 @@ Use this alert component to make announcements with a CTA link.
430
413
  </div>
431
414
  <svg class="w-4 h-4 ms-1 shrink-0" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m9 5 7 7-7 7"/></svg>
432
415
  </div>
433
- {{< /example >}}
416
+ ```
434
417
 
435
418
  ## JavaScript behaviour
436
419
 
@@ -630,7 +613,7 @@ Check out the following JavaScript example to learn how to initialize, set the o
630
613
 
631
614
  First of all, you should set the required target element and optionally set a trigger element which will dismiss the target element when clicked and other options to customize the animation.
632
615
 
633
- {{< code lang="javascript" file="dismiss.js" icon="file" >}}
616
+ ```javascript
634
617
  // target element that will be dismissed
635
618
  const $targetEl = document.getElementById('targetElement');
636
619
 
@@ -655,11 +638,11 @@ const instanceOptions = {
655
638
  id: 'targetElement',
656
639
  override: true
657
640
  };
658
- {{< /code >}}
641
+ ```
659
642
 
660
643
  Create a new Dismiss object based on the options set above.
661
644
 
662
- {{< code lang="javascript" file="dismiss.js" icon="file" >}}
645
+ ```javascript
663
646
  import { Dismiss } from 'flowbite';
664
647
 
665
648
  /*
@@ -669,34 +652,34 @@ import { Dismiss } from 'flowbite';
669
652
  * instanceOptions (optional)
670
653
  */
671
654
  const dismiss = new Dismiss($targetEl, $triggerEl, options, instanceOptions);
672
- {{< /code >}}
655
+ ```
673
656
 
674
657
  You can now use the methods on the Dismiss object.
675
658
 
676
- {{< code lang="javascript" >}}
659
+ ```javascript
677
660
  // hide the target element
678
661
  dismiss.hide();
679
- {{< /code >}}
662
+ ```
680
663
 
681
664
  ### HTML Markup
682
665
 
683
666
  Use this HTML code for the JavaScript code example above.
684
667
 
685
- {{< code lang="html" file="dismiss.html" icon="file" >}}
668
+ ```html
686
669
  <button id="triggerElement" type="button" class="text-white bg-brand box-border border border-transparent hover:bg-brand-strong focus:ring-4 focus:ring-brand-medium shadow-xs font-medium leading-5 rounded-base text-sm px-4 py-2.5 focus:outline-none">Hide alert</button>
687
670
 
688
671
  <div id="targetElement" class="p-4 mb-4 text-sm text-fg-brand-strong rounded-base bg-brand-softer" role="alert">
689
672
  <span class="font-medium">Info alert!</span> Change a few things up and try submitting again.
690
673
  </div>
691
- {{< /code >}}
674
+ ```
692
675
 
693
676
  ### TypeScript
694
677
 
695
- If you're using the <a href="{{< ref "getting-started/typescript" >}}">TypeScript configuration</a> from Flowbite then you can import the types for the Dismiss class, parameters and its options.
678
+ If you're using the TypeScript configuration from Flowbite then you can import the types for the Dismiss class, parameters and its options.
696
679
 
697
680
  Here's an example that applies the types from Flowbite to the code above:
698
681
 
699
- {{< code lang="typescript" file="dismiss.ts" icon="file" >}}
682
+ ```javascript
700
683
  import { Dismiss } from "flowbite";
701
684
  import type { DismissOptions, DismissInterface } from "flowbite";
702
685
  import type { InstanceOptions } from 'flowbite';
@@ -736,4 +719,4 @@ const dismiss: DismissInterface = new Dismiss($targetEl, $triggerEl, options, in
736
719
 
737
720
  // programmatically hide it
738
721
  dismiss.hide();
739
- {{< /code >}}
722
+ ```
@@ -1,60 +1,47 @@
1
- ---
2
- layout: docs
3
- title: Tailwind CSS Avatar - Flowbite
4
- description: Use the avatar component to show a visual representation of a user profile using an image element or SVG object based on multiple styles and sizes
5
- group: components
6
- toc: true
7
-
8
- previous: Alerts
9
- previousLink: components/alerts/
10
- next: Badge
11
- nextLink: components/badge/
12
- ---
13
-
14
1
  The avatar component can be used as a visual identifier for a user profile on your website and you can use the examples from Flowbite to modify the styles and sizes of these components using the utility classes from Tailwind CSS.
15
2
 
16
3
  ## Default avatar
17
4
 
18
5
  Use this example to create a circle and rounded avatar on an image element.
19
6
 
20
- {{< example class="flex justify-center gap-4" github="components/avatar.md" show_dark=true >}}
7
+ ```html
21
8
  <img class="w-10 h-10 rounded-full" src="/docs/images/people/profile-picture-5.jpg" alt="Rounded avatar">
22
9
  <img class="w-10 h-10 rounded-base" src="/docs/images/people/profile-picture-5.jpg" alt="Default avatar">
23
- {{< /example >}}
10
+ ```
24
11
 
25
12
  ## Bordered
26
13
 
27
14
  Apply a border around the avatar component you can use the `ring-{color}` class from Tailwind CSS.
28
15
 
29
- {{< example class="flex justify-center" github="components/avatar.md" show_dark=true >}}
16
+ ```html
30
17
  <img class="w-10 h-10 p-1 rounded-full ring-2 ring-default" src="/docs/images/people/profile-picture-5.jpg" alt="Bordered avatar">
31
- {{< /example >}}
18
+ ```
32
19
 
33
20
  ## Placeholder icon
34
21
 
35
22
  Use this example as a placeholder icon for the user profile when there is no custom image available.
36
23
 
37
- {{< example class="flex justify-center" github="components/avatar.md" show_dark=true >}}
24
+ ```html
38
25
  <div class="relative w-10 h-10 overflow-hidden bg-neutral-secondary-medium rounded-full">
39
26
  <svg class="absolute w-12 h-12 text-body-subtle -left-1" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M10 9a3 3 0 100-6 3 3 0 000 6zm-7 9a7 7 0 1114 0H3z" clip-rule="evenodd"></path></svg>
40
27
  </div>
41
- {{< /example >}}
28
+ ```
42
29
 
43
30
  ## Placeholder initials
44
31
 
45
32
  This example can be used to show the initials of the user's first and last name as a placeholder when no profile picture is available.
46
33
 
47
- {{< example class="flex justify-center" github="components/avatar.md" show_dark=true >}}
34
+ ```html
48
35
  <div class="relative inline-flex items-center justify-center w-10 h-10 overflow-hidden bg-neutral-tertiary rounded-full">
49
36
  <span class="font-medium text-body">JL</span>
50
37
  </div>
51
- {{< /example >}}
38
+ ```
52
39
 
53
40
  ## Avatar tooltip
54
41
 
55
42
  Use this example to show a tooltip when hovering over the avatar.
56
43
 
57
- {{< example class="flex items-center justify-center pt-8 gap-4" github="components/avatar.md" show_dark=true >}}
44
+ ```html
58
45
  <div>
59
46
  <div id="tooltip-jese" role="tooltip" class="absolute z-10 invisible inline-block px-3 py-2 text-sm font-medium text-white transition-opacity duration-300 bg-dark rounded-base shadow-xs opacity-0 tooltip">
60
47
  Jese Leos
@@ -76,13 +63,13 @@ Use this example to show a tooltip when hovering over the avatar.
76
63
  </div>
77
64
  <img data-tooltip-target="tooltip-bonnie" class="w-10 h-10 rounded-base" src="/docs/images/people/profile-picture-3.jpg" alt="Medium avatar">
78
65
  </div>
79
- {{< /example >}}
66
+ ```
80
67
 
81
68
  ## Dot indicator
82
69
 
83
70
  Use a dot element relative to the avatar component as an indicator for the user (eg. online or offline status).
84
71
 
85
- {{< example class="flex justify-center gap-4" github="components/avatar.md" show_dark=true >}}
72
+ ```html
86
73
  <div class="relative">
87
74
  <img class="w-10 h-10 rounded-full" src="/docs/images/people/profile-picture-5.jpg" alt="">
88
75
  <span class="top-0 left-7 absolute w-3.5 h-3.5 bg-success border-2 border-buffer rounded-full"></span>
@@ -99,13 +86,13 @@ Use a dot element relative to the avatar component as an indicator for the user
99
86
  <img class="w-10 h-10 rounded-base" src="/docs/images/people/profile-picture-5.jpg" alt="">
100
87
  <span class="absolute bottom-0 left-8 transform translate-y-1/4 w-3.5 h-3.5 bg-success border-2 border-buffer rounded-full"></span>
101
88
  </div>
102
- {{< /example >}}
89
+ ```
103
90
 
104
91
  ## Stacked
105
92
 
106
93
  Use this example if you want to stack a group of users by overlapping the avatar components.
107
94
 
108
- {{< example class="flex justify-center gap-4 rtl:gap-8" github="components/avatar.md" show_dark=true >}}
95
+ ```html
109
96
  <div class="flex -space-x-4 rtl:space-x-reverse">
110
97
  <img class="w-10 h-10 border-2 border-buffer rounded-full" src="/docs/images/people/profile-picture-5.jpg" alt="">
111
98
  <img class="w-10 h-10 border-2 border-buffer rounded-full" src="/docs/images/people/profile-picture-2.jpg" alt="">
@@ -118,13 +105,13 @@ Use this example if you want to stack a group of users by overlapping the avatar
118
105
  <img class="w-10 h-10 border-2 border-buffer rounded-full" src="/docs/images/people/profile-picture-3.jpg" alt="">
119
106
  <a class="flex items-center justify-center w-10 h-10 text-xs font-medium text-white bg-dark-strong border-2 border-buffer rounded-full" href="#">+99</a>
120
107
  </div>
121
- {{< /example >}}
108
+ ```
122
109
 
123
110
  ## Avatar text
124
111
 
125
112
  This example can be used if you want to show additional information in the form of text elements such as the user's name and join date.
126
113
 
127
- {{< example class="flex justify-center" github="components/avatar.md" show_dark=true >}}
114
+ ```html
128
115
  <div class="flex items-center gap-2.5">
129
116
  <img class="w-10 h-10 rounded-full" src="/docs/images/people/profile-picture-5.jpg" alt="">
130
117
  <div class="font-medium text-heading">
@@ -132,13 +119,13 @@ This example can be used if you want to show additional information in the form
132
119
  <div class="text-sm font-normal text-body">Joined in August 2014</div>
133
120
  </div>
134
121
  </div>
135
- {{< /example >}}
122
+ ```
136
123
 
137
124
  ## User dropdown
138
125
 
139
126
  Use this example if you want to show a dropdown menu when clicking on the avatar component.
140
127
 
141
- {{< example class="flex justify-center gap-4" github="components/avatar.md" show_dark=true iframeHeight="360" >}}
128
+ ```html
142
129
  <img id="avatarButton" type="button" data-dropdown-toggle="userDropdown" data-dropdown-placement="bottom-start" class="w-10 h-10 rounded-full cursor-pointer" src="/docs/images/people/profile-picture-5.jpg" alt="User dropdown">
143
130
 
144
131
  <!-- Dropdown menu -->
@@ -162,17 +149,17 @@ Use this example if you want to show a dropdown menu when clicking on the avatar
162
149
  </li>
163
150
  </ul>
164
151
  </div>
165
- {{< /example >}}
152
+ ```
166
153
 
167
154
  ## Sizes
168
155
 
169
156
  Choose from multiple sizing options for the avatar component from this example.
170
157
 
171
- {{< example class="flex flex-wrap items-center justify-center gap-6" github="components/avatar.md" show_dark=true >}}
158
+ ```html
172
159
  <img class="w-4.5 h-4.5 rounded-sm" src="/docs/images/people/profile-picture-5.jpg" alt="Extra small avatar">
173
160
  <img class="w-6 h-6 rounded-sm" src="/docs/images/people/profile-picture-5.jpg" alt="Small avatar">
174
161
  <img class="w-8 h-8 rounded-base" src="/docs/images/people/profile-picture-5.jpg" alt="Base avatar">
175
162
  <img class="w-11 h-11 rounded-base" src="/docs/images/people/profile-picture-5.jpg" alt="Large avatar">
176
163
  <img class="w-14 h-14 rounded-base" src="/docs/images/people/profile-picture-5.jpg" alt="xl avatar">
177
164
  <img class="w-16 h-16 rounded-base" src="/docs/images/people/profile-picture-5.jpg" alt="2xl avatar">
178
- {{< /example >}}
165
+ ```