flowbite-mcp 1.1.2 → 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,96 +1,3 @@
1
- ---
2
- layout: docs
3
- title: Tailwind CSS QR Code Generator - Flowbite
4
- description: Use this component to generate and show QR codes based on text or URL that can be scanned with device phone cameras and other devices using the Flowbite library based on Tailwind CSS
5
- group: components
6
- toc: true
7
-
8
- previous: Typography
9
- previousLink: components/typography/
10
- next: Video
11
- nextLink: components/video/
12
- ---
13
-
14
- <div class="grid sm:grid-cols-2 gap-8 sm:bg-neutral-primary sm:border border-light-subtle sm:rounded-base sm:p-8 mb-8">
15
- <div class="space-y-4">
16
- <p class="text-body">Generate QR codes from text or URLs.</p>
17
- <label for="qr_code_value" class="block mb-2.5 text-sm font-medium text-heading">Value:</label>
18
- <input type="text" id="qr_code_value" class="bg-neutral-secondary-medium border border-default-medium text-heading text-sm rounded-base focus:ring-brand focus:border-brand block w-full px-3 py-2.5 shadow-xs placeholder:text-body" placeholder="https://flowbite.com" required />
19
- <label for="qr_code_correction" class="block mb-2.5 text-sm font-medium text-heading">Correction level:</label>
20
-
21
- <div class="inline-flex rounded-base shadow-xs -space-x-px" role="group">
22
- <button data-popover-target="popover-qr-l" data-qr-code-level="L" data-qr-code-active="false" type="button" class="inline-flex items-center justify-center text-body bg-neutral-primary-soft border border-default hover:bg-neutral-secondary-medium hover:text-heading focus:ring-3 focus:ring-neutral-tertiary-soft font-medium leading-5 rounded-s-base text-sm w-9 h-9 focus:outline-none data-[qr-code-active=true]:text-fg-brand">
23
- L
24
- </button>
25
- <div data-popover id="popover-qr-l" role="tooltip" class="absolute z-10 invisible inline-block w-72 text-sm text-body transition-opacity duration-300 bg-neutral-primary-soft border border-default rounded-base shadow-xs opacity-0">
26
- <div class="px-3 py-2 bg-neutral-tertiary border-b border-default rounded-t-base">
27
- <h3 class="font-medium text-heading">L (Low) – Recovers 7% of data</h3>
28
- </div>
29
- <div class="px-3 py-2">
30
- <p>Best for simple, high-quality printing where space efficiency is important.</p>
31
- </div>
32
- <div data-popper-arrow></div>
33
- </div>
34
- <button data-popover-target="popover-qr-m" data-qr-code-level="M" data-qr-code-active="true" type="button" class="inline-flex items-center justify-center text-body bg-neutral-primary-soft border border-default hover:bg-neutral-secondary-medium hover:text-heading focus:ring-3 focus:ring-neutral-tertiary-soft font-medium leading-5 text-sm w-9 h-9 focus:outline-none data-[qr-code-active=true]:text-fg-brand">
35
- M
36
- </button>
37
- <div data-popover id="popover-qr-m" role="tooltip" class="absolute z-10 invisible inline-block w-72 text-sm text-body transition-opacity duration-300 bg-neutral-primary-soft border border-default rounded-base shadow-xs opacity-0">
38
- <div class="px-3 py-2 bg-neutral-tertiary border-b border-default rounded-t-base">
39
- <h3 class="font-medium text-heading">M (Medium) – Recovers 15% of data</h3>
40
- </div>
41
- <div class="px-3 py-2">
42
- <p>Most commonly used; good balance of size and robustness.</p>
43
- </div>
44
- <div data-popper-arrow></div>
45
- </div>
46
- <button data-popover-target="popover-qr-q" data-qr-code-level="Q" data-qr-code-active="false" type="button" class="inline-flex items-center justify-center text-body bg-neutral-primary-soft border border-default hover:bg-neutral-secondary-medium hover:text-heading focus:ring-3 focus:ring-neutral-tertiary-soft font-medium leading-5 text-sm w-9 h-9 focus:outline-none data-[qr-code-active=true]:text-fg-brand">
47
- Q
48
- </button>
49
- <div data-popover id="popover-qr-q" role="tooltip" class="absolute z-10 invisible inline-block w-72 text-sm text-body transition-opacity duration-300 bg-neutral-primary-soft border border-default rounded-base shadow-xs opacity-0">
50
- <div class="px-3 py-2 bg-neutral-tertiary border-b border-default rounded-t-base">
51
- <h3 class="font-medium text-heading">Q (Quartile) – Recovers 25% of data</h3>
52
- </div>
53
- <div class="px-3 py-2">
54
- <p>More resilient; useful when the code may get smudged or partially covered.</p>
55
- </div>
56
- <div data-popper-arrow></div>
57
- </div>
58
- <button data-popover-target="popover-qr-h" data-qr-code-level="H" data-qr-code-active="false" type="button" class="inline-flex items-center justify-center text-body bg-neutral-primary-soft border border-default hover:bg-neutral-secondary-medium hover:text-heading focus:ring-3 focus:ring-neutral-tertiary-soft font-medium leading-5 rounded-e-base text-sm w-9 h-9 focus:outline-none data-[qr-code-active=true]:text-fg-brand">
59
- H
60
- </button>
61
- <div data-popover id="popover-qr-h" role="tooltip" class="absolute z-10 invisible inline-block w-72 text-sm text-body transition-opacity duration-300 bg-neutral-primary-soft border border-default rounded-base shadow-xs opacity-0">
62
- <div class="px-3 py-2 bg-neutral-tertiary border-b border-default rounded-t-base">
63
- <h3 class="font-medium text-heading">H (High) – Recovers 30% of data</h3>
64
- </div>
65
- <div class="px-3 py-2">
66
- <p>Highest durability; used when maximum protection is needed (e.g., logos in the center of the code or harsh conditions).</p>
67
- </div>
68
- <div data-popper-arrow></div>
69
- </div>
70
- </div>
71
- </div>
72
- <div class="flex justify-center flex-col">
73
- <div class="flex justify-center p-2 bg-neutral-secondary-medium rounded-base mb-4">
74
- <div id="qrcode" class="w-56 h-56"></div>
75
- </div>
76
- <div class="grid grid-cols-2 gap-4">
77
- <button type="button" id="copy-qr-code-button" class="text-white inline-flex items-center justify-center gap-2 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">
78
- <svg id="default-copy-qr-code-icon" 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">
79
- <path stroke="currentColor" stroke-linejoin="round" stroke-width="2" d="M9 8v3a1 1 0 0 1-1 1H5m11 4h2a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1h-7a1 1 0 0 0-1 1v1m4 3v10a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1v-7.13a1 1 0 0 1 .24-.65L7.7 8.35A1 1 0 0 1 8.46 8H13a1 1 0 0 1 1 1Z"/>
80
- </svg>
81
- <svg id="success-copy-qr-code-icon" class="w-4 h-4 hidden text-white" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
82
- <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 11.917 9.724 16.5 19 7.5"/>
83
- </svg>
84
- <span id="copy-qr-code-text">Copy as SVG</span>
85
- </button>
86
- <button id="save-qr-code-button" type="button" class="text-body inline-flex items-center justify-center gap-2 bg-neutral-secondary-medium box-border border border-default-medium hover:bg-neutral-tertiary-medium hover:text-heading focus:ring-4 focus:ring-neutral-tertiary shadow-xs font-medium leading-5 rounded-base text-sm px-4 py-2.5 focus:outline-none"><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">
87
- <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 13V4M7 14H5a1 1 0 0 0-1 1v4a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-4a1 1 0 0 0-1-1h-2m-1-5-4 5-4-5m9 8h.01"/>
88
- </svg>
89
- Save as file</button>
90
- </div>
91
- </div>
92
- </div>
93
-
94
1
  QR codes are a popular way to encode information such as website links, texts, and other data into a two-dimensional barcode that can be scanned with a phone camera or other devices. The Flowbite component allows you to couple them with other elements such as input fields, tooltips, tab selectors, and more.
95
2
 
96
3
  Use this free QR code generator and customize the parameters to see the live preview.
@@ -101,18 +8,45 @@ The component examples below are generated using the data you provided in the ge
101
8
 
102
9
  Use this example as a simple QR code with SVG embedded directly in the HTML.
103
10
 
104
- {{< example github="components/alerts.md" class="flex justify-center" show_dark=true >}}
11
+ ```html
105
12
  <div id="qrcode" class="w-48 h-48">
106
13
  <svg class="text-heading" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 29 29" shape-rendering="crispEdges"><path fill="none" d="M0 0h29v29H0z"></path><path stroke="currentColor" d="M4 4.5h7m1 0h1m1 0h2m2 0h7M4 5.5h1m5 0h1m4 0h2m1 0h1m5 0h1M4 6.5h1m1 0h3m1 0h1m2 0h1m2 0h1m1 0h1m1 0h3m1 0h1M4 7.5h1m1 0h3m1 0h1m3 0h1m3 0h1m1 0h3m1 0h1M4 8.5h1m1 0h3m1 0h1m1 0h1m2 0h1m2 0h1m1 0h3m1 0h1M4 9.5h1m5 0h1m1 0h1m5 0h1m5 0h1M4 10.5h7m1 0h1m1 0h1m1 0h1m1 0h7M13 11.5h2M5 12.5h7m3 0h2m2 0h2m3 0h1M6 13.5h1m1 0h1m6 0h1m1 0h1m2 0h5M4 14.5h3m1 0h3m1 0h2m3 0h2m2 0h1m1 0h1M4 15.5h1m2 0h1m3 0h1m5 0h1m1 0h4m1 0h1M4 16.5h1m1 0h2m2 0h2m3 0h1m2 0h1m4 0h1M12 17.5h2m2 0h2m1 0h4m1 0h1M4 18.5h7m1 0h3m2 0h1m3 0h3M4 19.5h1m5 0h1m1 0h1m2 0h1m1 0h1m3 0h2m1 0h1M4 20.5h1m1 0h3m1 0h1m1 0h2m1 0h1m2 0h1m5 0h1M4 21.5h1m1 0h3m1 0h1m1 0h2m2 0h2m1 0h4M4 22.5h1m1 0h3m1 0h1m1 0h1m1 0h2m2 0h1M4 23.5h1m5 0h1m1 0h1m1 0h1m5 0h3M4 24.5h7m2 0h3m5 0h1m1 0h1"></path></svg>
107
14
  </div>
108
- {{< /example >}}
15
+ ```
109
16
 
110
17
  ## QR code with input
111
18
 
112
19
  Use this example to show a QR code with SVG and a copy to clipboard input element below.
113
20
 
114
- {{< example github="components/alerts.md" class="flex justify-center" show_dark=true javascript=`
21
+ ```html
22
+ <div class="w-56 flex justify-center items-center flex-col">
23
+ <div id="qrcode" class="w-48 h-48">
24
+ <svg class="text-heading" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 29 29" shape-rendering="crispEdges"><path fill="none" d="M0 0h29v29H0z"></path><path stroke="currentColor" d="M4 4.5h7m1 0h1m1 0h2m2 0h7M4 5.5h1m5 0h1m4 0h2m1 0h1m5 0h1M4 6.5h1m1 0h3m1 0h1m2 0h1m2 0h1m1 0h1m1 0h3m1 0h1M4 7.5h1m1 0h3m1 0h1m3 0h1m3 0h1m1 0h3m1 0h1M4 8.5h1m1 0h3m1 0h1m1 0h1m2 0h1m2 0h1m1 0h3m1 0h1M4 9.5h1m5 0h1m1 0h1m5 0h1m5 0h1M4 10.5h7m1 0h1m1 0h1m1 0h1m1 0h7M13 11.5h2M5 12.5h7m3 0h2m2 0h2m3 0h1M6 13.5h1m1 0h1m6 0h1m1 0h1m2 0h5M4 14.5h3m1 0h3m1 0h2m3 0h2m2 0h1m1 0h1M4 15.5h1m2 0h1m3 0h1m5 0h1m1 0h4m1 0h1M4 16.5h1m1 0h2m2 0h2m3 0h1m2 0h1m4 0h1M12 17.5h2m2 0h2m1 0h4m1 0h1M4 18.5h7m1 0h3m2 0h1m3 0h3M4 19.5h1m5 0h1m1 0h1m2 0h1m1 0h1m3 0h2m1 0h1M4 20.5h1m1 0h3m1 0h1m1 0h2m1 0h1m2 0h1m5 0h1M4 21.5h1m1 0h3m1 0h1m1 0h2m2 0h2m1 0h4M4 22.5h1m1 0h3m1 0h1m1 0h1m1 0h2m2 0h1M4 23.5h1m5 0h1m1 0h1m1 0h1m5 0h3M4 24.5h7m2 0h3m5 0h1m1 0h1"></path></svg>
25
+ </div>
26
+
27
+ <div class="w-full max-w-[18rem]">
28
+ <div class="relative">
29
+ <label for="npm-install-copy-button" class="sr-only">Label</label>
30
+ <input id="npm-install-copy-button" type="text" class="col-span-6 bg-neutral-secondary-medium border border-default-medium text-body text-sm rounded-base focus:ring-brand focus:border-brand block w-full px-3 py-2.5 shadow-xs placeholder:text-body" value="flowbite.com" disabled readonly>
31
+ <button data-copy-to-clipboard-target="npm-install-copy-button" data-tooltip-target="tooltip-copy-npm-install-copy-button" class="absolute end-2 top-1/2 -translate-y-1/2 text-body hover:bg-neutral-quaternary rounded p-1.5 inline-flex items-center justify-center">
32
+ <span id="default-icon">
33
+ <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="M15 4h3a1 1 0 0 1 1 1v15a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h3m0 3h6m-6 5h6m-6 4h6M10 3v4h4V3h-4Z"/></svg>
34
+ </span>
35
+ <span id="success-icon" class="hidden">
36
+ <svg class="w-4 h-4 text-fg-brand" 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="M15 4h3a1 1 0 0 1 1 1v15a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h3m0 3h6m-6 7 2 2 4-4m-5-9v4h4V3h-4Z"/></svg>
37
+ </span>
38
+ </button>
39
+ <div id="tooltip-copy-npm-install-copy-button" 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">
40
+ <span id="default-tooltip-message">Copy to clipboard</span>
41
+ <span id="success-tooltip-message" class="hidden">Copied!</span>
42
+ <div class="tooltip-arrow" data-popper-arrow></div>
43
+ </div>
44
+ </div>
45
+ </div>
46
+ </div>
47
+ ```
115
48
 
49
+ ```javascript
116
50
  window.addEventListener('load', function () {
117
51
  const clipboard = FlowbiteInstances.getInstance('CopyClipboard', 'npm-install-copy-button');
118
52
  const tooltip = FlowbiteInstances.getInstance('Tooltip', 'tooltip-copy-npm-install-copy-button');
@@ -148,39 +82,13 @@ window.addEventListener('load', function () {
148
82
  tooltip.hide();
149
83
  }
150
84
  })
151
- ` >}}
152
- <div class="w-56 flex justify-center items-center flex-col">
153
- <div id="qrcode" class="w-48 h-48">
154
- <svg class="text-heading" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 29 29" shape-rendering="crispEdges"><path fill="none" d="M0 0h29v29H0z"></path><path stroke="currentColor" d="M4 4.5h7m1 0h1m1 0h2m2 0h7M4 5.5h1m5 0h1m4 0h2m1 0h1m5 0h1M4 6.5h1m1 0h3m1 0h1m2 0h1m2 0h1m1 0h1m1 0h3m1 0h1M4 7.5h1m1 0h3m1 0h1m3 0h1m3 0h1m1 0h3m1 0h1M4 8.5h1m1 0h3m1 0h1m1 0h1m2 0h1m2 0h1m1 0h3m1 0h1M4 9.5h1m5 0h1m1 0h1m5 0h1m5 0h1M4 10.5h7m1 0h1m1 0h1m1 0h1m1 0h7M13 11.5h2M5 12.5h7m3 0h2m2 0h2m3 0h1M6 13.5h1m1 0h1m6 0h1m1 0h1m2 0h5M4 14.5h3m1 0h3m1 0h2m3 0h2m2 0h1m1 0h1M4 15.5h1m2 0h1m3 0h1m5 0h1m1 0h4m1 0h1M4 16.5h1m1 0h2m2 0h2m3 0h1m2 0h1m4 0h1M12 17.5h2m2 0h2m1 0h4m1 0h1M4 18.5h7m1 0h3m2 0h1m3 0h3M4 19.5h1m5 0h1m1 0h1m2 0h1m1 0h1m3 0h2m1 0h1M4 20.5h1m1 0h3m1 0h1m1 0h2m1 0h1m2 0h1m5 0h1M4 21.5h1m1 0h3m1 0h1m1 0h2m2 0h2m1 0h4M4 22.5h1m1 0h3m1 0h1m1 0h1m1 0h2m2 0h1M4 23.5h1m5 0h1m1 0h1m1 0h1m5 0h3M4 24.5h7m2 0h3m5 0h1m1 0h1"></path></svg>
155
- </div>
156
-
157
- <div class="w-full max-w-[18rem]">
158
- <div class="relative">
159
- <label for="npm-install-copy-button" class="sr-only">Label</label>
160
- <input id="npm-install-copy-button" type="text" class="col-span-6 bg-neutral-secondary-medium border border-default-medium text-body text-sm rounded-base focus:ring-brand focus:border-brand block w-full px-3 py-2.5 shadow-xs placeholder:text-body" value="flowbite.com" disabled readonly>
161
- <button data-copy-to-clipboard-target="npm-install-copy-button" data-tooltip-target="tooltip-copy-npm-install-copy-button" class="absolute end-2 top-1/2 -translate-y-1/2 text-body hover:bg-neutral-quaternary rounded p-1.5 inline-flex items-center justify-center">
162
- <span id="default-icon">
163
- <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="M15 4h3a1 1 0 0 1 1 1v15a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h3m0 3h6m-6 5h6m-6 4h6M10 3v4h4V3h-4Z"/></svg>
164
- </span>
165
- <span id="success-icon" class="hidden">
166
- <svg class="w-4 h-4 text-fg-brand" 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="M15 4h3a1 1 0 0 1 1 1v15a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h3m0 3h6m-6 7 2 2 4-4m-5-9v4h4V3h-4Z"/></svg>
167
- </span>
168
- </button>
169
- <div id="tooltip-copy-npm-install-copy-button" 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">
170
- <span id="default-tooltip-message">Copy to clipboard</span>
171
- <span id="success-tooltip-message" class="hidden">Copied!</span>
172
- <div class="tooltip-arrow" data-popper-arrow></div>
173
- </div>
174
- </div>
175
- </div>
176
- </div>
177
- {{< /example >}}
85
+ ```
178
86
 
179
87
  ## QR code with card
180
88
 
181
89
  This example can be used to show a QR code inside a card element with a title and description.
182
90
 
183
- {{< example github="components/alerts.md" class="flex justify-center" show_dark=true >}}
91
+ ```html
184
92
  <div class="bg-neutral-primary-soft block max-w-sm p-6 border border-default rounded-base shadow-xs">
185
93
  <a href="#">
186
94
  <div class="rounded-base bg-brand flex justify-center items-center">
@@ -197,13 +105,13 @@ This example can be used to show a QR code inside a card element with a title an
197
105
  What's a QR code?
198
106
  </a>
199
107
  </div>
200
- {{< /example >}}
108
+ ```
201
109
 
202
110
  ## Share profile with QR
203
111
 
204
112
  Use this example to share profile information using a QR code with profile details.
205
113
 
206
- {{< example github="components/alerts.md" class="flex justify-center" show_dark=true >}}
114
+ ```html
207
115
  <div class="bg-neutral-primary-soft block max-w-sm p-6 border border-default rounded-base shadow-xs">
208
116
  <div class="flex flex-col items-center justify-center gap-2">
209
117
  <img class="w-10 h-10 rounded-full" src="/docs/images/people/profile-picture-5.jpg" alt="Rounded avatar">
@@ -216,13 +124,13 @@ Use this example to share profile information using a QR code with profile detai
216
124
  </a>
217
125
  <p class="text-body text-center">Share your QR code and make it easy for others to follow you.</p>
218
126
  </div>
219
- {{< /example >}}
127
+ ```
220
128
 
221
129
  ## Loading state
222
130
 
223
131
  This example can be used to show a loading state right after the QR code was scanned with the camera.
224
132
 
225
- {{< example github="components/alerts.md" class="flex justify-center" show_dark=true >}}
133
+ ```html
226
134
  <div class="relative">
227
135
  <div class="absolute top-0 start-0 w-full h-full bg-neutral-primary/95 z-10 gap-2 flex items-center justify-center flex-col">
228
136
  <div role="status">
@@ -237,13 +145,13 @@ This example can be used to show a loading state right after the QR code was sca
237
145
  <svg class="text-heading" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 29 29" shape-rendering="crispEdges"><path fill="none" d="M0 0h29v29H0z"></path><path stroke="currentColor" d="M4 4.5h7m1 0h1m1 0h2m2 0h7M4 5.5h1m5 0h1m4 0h2m1 0h1m5 0h1M4 6.5h1m1 0h3m1 0h1m2 0h1m2 0h1m1 0h1m1 0h3m1 0h1M4 7.5h1m1 0h3m1 0h1m3 0h1m3 0h1m1 0h3m1 0h1M4 8.5h1m1 0h3m1 0h1m1 0h1m2 0h1m2 0h1m1 0h3m1 0h1M4 9.5h1m5 0h1m1 0h1m5 0h1m5 0h1M4 10.5h7m1 0h1m1 0h1m1 0h1m1 0h7M13 11.5h2M5 12.5h7m3 0h2m2 0h2m3 0h1M6 13.5h1m1 0h1m6 0h1m1 0h1m2 0h5M4 14.5h3m1 0h3m1 0h2m3 0h2m2 0h1m1 0h1M4 15.5h1m2 0h1m3 0h1m5 0h1m1 0h4m1 0h1M4 16.5h1m1 0h2m2 0h2m3 0h1m2 0h1m4 0h1M12 17.5h2m2 0h2m1 0h4m1 0h1M4 18.5h7m1 0h3m2 0h1m3 0h3M4 19.5h1m5 0h1m1 0h1m2 0h1m1 0h1m3 0h2m1 0h1M4 20.5h1m1 0h3m1 0h1m1 0h2m1 0h1m2 0h1m5 0h1M4 21.5h1m1 0h3m1 0h1m1 0h2m2 0h2m1 0h4M4 22.5h1m1 0h3m1 0h1m1 0h1m1 0h2m2 0h1M4 23.5h1m5 0h1m1 0h1m1 0h1m5 0h3M4 24.5h7m2 0h3m5 0h1m1 0h1"></path></svg>
238
146
  </div>
239
147
  </div>
240
- {{< /example >}}
148
+ ```
241
149
 
242
150
  ## Success state
243
151
 
244
152
  Use this component to show a success state after the QR code was scanned and the data was processed.
245
153
 
246
- {{< example github="components/alerts.md" class="flex justify-center" show_dark=true >}}
154
+ ```html
247
155
  <div class="relative">
248
156
  <div class="absolute top-0 start-0 w-full h-full bg-neutral-primary/95 z-10 gap-2 flex items-center justify-center flex-col">
249
157
  <svg class="w-6 h-6 text-fg-success" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
@@ -255,13 +163,13 @@ Use this component to show a success state after the QR code was scanned and the
255
163
  <svg class="text-heading" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 29 29" shape-rendering="crispEdges"><path fill="none" d="M0 0h29v29H0z"></path><path stroke="currentColor" d="M4 4.5h7m1 0h1m1 0h2m2 0h7M4 5.5h1m5 0h1m4 0h2m1 0h1m5 0h1M4 6.5h1m1 0h3m1 0h1m2 0h1m2 0h1m1 0h1m1 0h3m1 0h1M4 7.5h1m1 0h3m1 0h1m3 0h1m3 0h1m1 0h3m1 0h1M4 8.5h1m1 0h3m1 0h1m1 0h1m2 0h1m2 0h1m1 0h3m1 0h1M4 9.5h1m5 0h1m1 0h1m5 0h1m5 0h1M4 10.5h7m1 0h1m1 0h1m1 0h1m1 0h7M13 11.5h2M5 12.5h7m3 0h2m2 0h2m3 0h1M6 13.5h1m1 0h1m6 0h1m1 0h1m2 0h5M4 14.5h3m1 0h3m1 0h2m3 0h2m2 0h1m1 0h1M4 15.5h1m2 0h1m3 0h1m5 0h1m1 0h4m1 0h1M4 16.5h1m1 0h2m2 0h2m3 0h1m2 0h1m4 0h1M12 17.5h2m2 0h2m1 0h4m1 0h1M4 18.5h7m1 0h3m2 0h1m3 0h3M4 19.5h1m5 0h1m1 0h1m2 0h1m1 0h1m3 0h2m1 0h1M4 20.5h1m1 0h3m1 0h1m1 0h2m1 0h1m2 0h1m5 0h1M4 21.5h1m1 0h3m1 0h1m1 0h2m2 0h2m1 0h4M4 22.5h1m1 0h3m1 0h1m1 0h1m1 0h2m2 0h1M4 23.5h1m5 0h1m1 0h1m1 0h1m5 0h3M4 24.5h7m2 0h3m5 0h1m1 0h1"></path></svg>
256
164
  </div>
257
165
  </div>
258
- {{< /example >}}
166
+ ```
259
167
 
260
168
  ## Expired state
261
169
 
262
170
  You can use this component to show that the QR code has expired and allow the user to refresh the code.
263
171
 
264
- {{< example github="components/alerts.md" class="flex justify-center" show_dark=true >}}
172
+ ```html
265
173
  <div class="relative">
266
174
  <div class="absolute top-0 start-0 w-full h-full bg-neutral-primary/95 z-10 gap-2 flex items-center justify-center flex-col">
267
175
  <svg class="w-6 h-6 text-fg-danger" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
@@ -277,4 +185,4 @@ Refresh</button>
277
185
  <svg class="text-heading" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 29 29" shape-rendering="crispEdges"><path fill="none" d="M0 0h29v29H0z"></path><path stroke="currentColor" d="M4 4.5h7m1 0h1m1 0h2m2 0h7M4 5.5h1m5 0h1m4 0h2m1 0h1m5 0h1M4 6.5h1m1 0h3m1 0h1m2 0h1m2 0h1m1 0h1m1 0h3m1 0h1M4 7.5h1m1 0h3m1 0h1m3 0h1m3 0h1m1 0h3m1 0h1M4 8.5h1m1 0h3m1 0h1m1 0h1m2 0h1m2 0h1m1 0h3m1 0h1M4 9.5h1m5 0h1m1 0h1m5 0h1m5 0h1M4 10.5h7m1 0h1m1 0h1m1 0h1m1 0h7M13 11.5h2M5 12.5h7m3 0h2m2 0h2m3 0h1M6 13.5h1m1 0h1m6 0h1m1 0h1m2 0h5M4 14.5h3m1 0h3m1 0h2m3 0h2m2 0h1m1 0h1M4 15.5h1m2 0h1m3 0h1m5 0h1m1 0h4m1 0h1M4 16.5h1m1 0h2m2 0h2m3 0h1m2 0h1m4 0h1M12 17.5h2m2 0h2m1 0h4m1 0h1M4 18.5h7m1 0h3m2 0h1m3 0h3M4 19.5h1m5 0h1m1 0h1m2 0h1m1 0h1m3 0h2m1 0h1M4 20.5h1m1 0h3m1 0h1m1 0h2m1 0h1m2 0h1m5 0h1M4 21.5h1m1 0h3m1 0h1m1 0h2m2 0h2m1 0h4M4 22.5h1m1 0h3m1 0h1m1 0h1m1 0h2m2 0h1M4 23.5h1m5 0h1m1 0h1m1 0h1m5 0h3M4 24.5h7m2 0h3m5 0h1m1 0h1"></path></svg>
278
186
  </div>
279
187
  </div>
280
- {{< /example >}}
188
+ ```
@@ -1,16 +1,3 @@
1
- ---
2
- layout: docs
3
- title: Tailwind CSS Rating - Flowbite
4
- description: Use the rating component to show reviews and testimonials from your users using stars and scores based on multiple styles and sizes
5
- group: components
6
- toc: true
7
-
8
- previous: Progress bar
9
- previousLink: components/progress/
10
- next: Sidebar
11
- nextLink: components/sidebar/
12
- ---
13
-
14
1
  Get started with the rating component to show an aggregate of reviews and scores in the forms of stars or numbers using the utility classes from Tailwind CSS and components from Flowbite.
15
2
 
16
3
  You can find multiple examples on this page including different styles, sizes, and variants of the rating component and other associated elements such as a comment or card.
@@ -19,7 +6,7 @@ You can find multiple examples on this page including different styles, sizes, a
19
6
 
20
7
  Use this simple example of a star rating component for showing review results.
21
8
 
22
- {{< example class="flex justify-center" github="components/rating.md" show_dark=true >}}
9
+ ```html
23
10
 
24
11
  <div class="flex items-center space-x-1">
25
12
  <svg class="w-5 h-5 text-fg-yellow" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M13.849 4.22c-.684-1.626-3.014-1.626-3.698 0L8.397 8.387l-4.552.361c-1.775.14-2.495 2.331-1.142 3.477l3.468 2.937-1.06 4.392c-.413 1.713 1.472 3.067 2.992 2.149L12 19.35l3.897 2.354c1.52.918 3.405-.436 2.992-2.15l-1.06-4.39 3.468-2.938c1.353-1.146.633-3.336-1.142-3.477l-4.552-.36-1.754-4.17Z"/></svg>
@@ -28,13 +15,13 @@ Use this simple example of a star rating component for showing review results.
28
15
  <svg class="w-5 h-5 text-fg-yellow" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M13.849 4.22c-.684-1.626-3.014-1.626-3.698 0L8.397 8.387l-4.552.361c-1.775.14-2.495 2.331-1.142 3.477l3.468 2.937-1.06 4.392c-.413 1.713 1.472 3.067 2.992 2.149L12 19.35l3.897 2.354c1.52.918 3.405-.436 2.992-2.15l-1.06-4.39 3.468-2.938c1.353-1.146.633-3.336-1.142-3.477l-4.552-.36-1.754-4.17Z"/></svg>
29
16
  <svg class="w-5 h-5 text-fg-disabled" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M13.849 4.22c-.684-1.626-3.014-1.626-3.698 0L8.397 8.387l-4.552.361c-1.775.14-2.495 2.331-1.142 3.477l3.468 2.937-1.06 4.392c-.413 1.713 1.472 3.067 2.992 2.149L12 19.35l3.897 2.354c1.52.918 3.405-.436 2.992-2.15l-1.06-4.39 3.468-2.938c1.353-1.146.633-3.336-1.142-3.477l-4.552-.36-1.754-4.17Z"/></svg>
30
17
  </div>
31
- {{< /example >}}
18
+ ```
32
19
 
33
20
  ## Rating with text
34
21
 
35
22
  If you also want to show a text near the stars you can use this example as a reference.
36
23
 
37
- {{< example class="flex justify-center" github="components/rating.md" show_dark=true >}}
24
+ ```html
38
25
 
39
26
  <div class="flex items-center">
40
27
  <div class="flex items-center space-x-1">
@@ -46,13 +33,13 @@ If you also want to show a text near the stars you can use this example as a ref
46
33
  </div>
47
34
  <p class="ms-2 text-sm font-medium text-body">4.95 out of 5</p>
48
35
  </div>
49
- {{< /example >}}
36
+ ```
50
37
 
51
38
  ## Rating count
52
39
 
53
40
  Aggregate more results by using this example to show the amount of reviews and the average score.
54
41
 
55
- {{< example class="flex justify-center" github="components/rating.md" show_dark=true >}}
42
+ ```html
56
43
 
57
44
  <div class="flex items-center">
58
45
  <svg class="w-5 h-5 text-fg-yellow" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M13.849 4.22c-.684-1.626-3.014-1.626-3.698 0L8.397 8.387l-4.552.361c-1.775.14-2.495 2.331-1.142 3.477l3.468 2.937-1.06 4.392c-.413 1.713 1.472 3.067 2.992 2.149L12 19.35l3.897 2.354c1.52.918 3.405-.436 2.992-2.15l-1.06-4.39 3.468-2.938c1.353-1.146.633-3.336-1.142-3.477l-4.552-.36-1.754-4.17Z"/></svg>
@@ -60,13 +47,13 @@ Aggregate more results by using this example to show the amount of reviews and t
60
47
  <span class="w-1 h-1 mx-1.5 bg-neutral-quaternary rounded-full"></span>
61
48
  <a href="#" class="text-sm font-medium text-heading underline hover:no-underline">73 reviews</a>
62
49
  </div>
63
- {{< /example >}}
50
+ ```
64
51
 
65
52
  ## Star sizes
66
53
 
67
54
  Check out the different sizing options for the star review component from small, medium, and large.
68
55
 
69
- {{< example class="flex flex-col items-center space-y-4" github="components/rating.md" show_dark=true >}}
56
+ ```html
70
57
  <div class="flex items-center space-x-1">
71
58
  <svg class="w-5 h-5 text-fg-yellow" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M13.849 4.22c-.684-1.626-3.014-1.626-3.698 0L8.397 8.387l-4.552.361c-1.775.14-2.495 2.331-1.142 3.477l3.468 2.937-1.06 4.392c-.413 1.713 1.472 3.067 2.992 2.149L12 19.35l3.897 2.354c1.52.918 3.405-.436 2.992-2.15l-1.06-4.39 3.468-2.938c1.353-1.146.633-3.336-1.142-3.477l-4.552-.36-1.754-4.17Z"/></svg>
72
59
  <svg class="w-5 h-5 text-fg-yellow" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M13.849 4.22c-.684-1.626-3.014-1.626-3.698 0L8.397 8.387l-4.552.361c-1.775.14-2.495 2.331-1.142 3.477l3.468 2.937-1.06 4.392c-.413 1.713 1.472 3.067 2.992 2.149L12 19.35l3.897 2.354c1.52.918 3.405-.436 2.992-2.15l-1.06-4.39 3.468-2.938c1.353-1.146.633-3.336-1.142-3.477l-4.552-.36-1.754-4.17Z"/></svg>
@@ -88,13 +75,13 @@ Check out the different sizing options for the star review component from small,
88
75
  <svg class="w-7 h-7 text-fg-yellow" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M13.849 4.22c-.684-1.626-3.014-1.626-3.698 0L8.397 8.387l-4.552.361c-1.775.14-2.495 2.331-1.142 3.477l3.468 2.937-1.06 4.392c-.413 1.713 1.472 3.067 2.992 2.149L12 19.35l3.897 2.354c1.52.918 3.405-.436 2.992-2.15l-1.06-4.39 3.468-2.938c1.353-1.146.633-3.336-1.142-3.477l-4.552-.36-1.754-4.17Z"/></svg>
89
76
  <svg class="w-7 h-7 text-fg-disabled" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M13.849 4.22c-.684-1.626-3.014-1.626-3.698 0L8.397 8.387l-4.552.361c-1.775.14-2.495 2.331-1.142 3.477l3.468 2.937-1.06 4.392c-.413 1.713 1.472 3.067 2.992 2.149L12 19.35l3.897 2.354c1.52.918 3.405-.436 2.992-2.15l-1.06-4.39 3.468-2.938c1.353-1.146.633-3.336-1.142-3.477l-4.552-.36-1.754-4.17Z"/></svg>
90
77
  </div>
91
- {{< /example >}}
78
+ ```
92
79
 
93
80
  ## Advanced rating
94
81
 
95
82
  This advanced rating component can be used to also show how many reviews have been posted for each star rating (eg. 4% for the 2 star ratings, 17% for 4 star rating etc).
96
83
 
97
- {{< example github="components/rating.md" show_dark=true >}}
84
+ ```html
98
85
 
99
86
  <div class="flex items-center mb-3">
100
87
  <div class="flex items-center space-x-1">
@@ -142,13 +129,13 @@ This advanced rating component can be used to also show how many reviews have be
142
129
  </div>
143
130
  <span class="text-sm font-medium text-body">1%</span>
144
131
  </div>
145
- {{< /example >}}
132
+ ```
146
133
 
147
134
  ## Score rating
148
135
 
149
136
  This component can be used to break up a general rating score into multiple categories using progress bars.
150
137
 
151
- {{< example github="components/rating.md" show_dark=true >}}
138
+ ```html
152
139
 
153
140
  <div class="flex items-center mb-5">
154
141
  <p class="bg-brand-softer text-fg-brand-strong text-sm font-semibold inline-flex items-center p-1.5 rounded-base">8.7</p>
@@ -226,13 +213,13 @@ This component can be used to break up a general rating score into multiple cate
226
213
  </dl>
227
214
  </div>
228
215
  </div>
229
- {{< /example >}}
216
+ ```
230
217
 
231
218
  ## Rating comment
232
219
 
233
220
  Use this component to show a single rating comment and its score alongside other components such as the user profile avatar, name, post date, and more.
234
221
 
235
- {{< example github="components/rating.md" show_dark=true >}}
222
+ ```html
236
223
 
237
224
  <article>
238
225
  <div class="flex items-center mb-4">
@@ -261,13 +248,13 @@ Use this component to show a single rating comment and its score alongside other
261
248
  </div>
262
249
  </aside>
263
250
  </article>
264
- {{< /example >}}
251
+ ```
265
252
 
266
253
  ## Review content
267
254
 
268
255
  Use this component to show the review content from a user alongside the avatar, location, details, and the score inside a card element.
269
256
 
270
- {{< example github="components/rating.md" show_dark=true >}}
257
+ ```html
271
258
 
272
259
  <article class="md:gap-8 md:grid md:grid-cols-3">
273
260
  <div>
@@ -320,4 +307,4 @@ Use this component to show the review content from a user alongside the avatar,
320
307
  </aside>
321
308
  </div>
322
309
  </article>
323
- {{< /example >}}
310
+ ```
@@ -1,23 +1,10 @@
1
- ---
2
- layout: docs
3
- title: Tailwind CSS Sidebar - Flowbite
4
- description: Use the sidebar component to show a list of menu items and multi-level menu items on either side of the page to navigate on your website
5
- group: components
6
- toc: true
7
-
8
- previous: Rating
9
- previousLink: components/rating/
10
- next: Skeleton
11
- nextLink: components/skeleton/
12
- ---
13
-
14
1
  The sidebar component can be used as a complementary element relative to the navbar shown on either the left or right side of the page used for the navigation on your web application, including menu items, multi-level menu items, call to actions elements, and more.
15
2
 
16
3
  ## Default sidebar
17
4
 
18
5
  Use this example to show a responsive list of menu items inside the sidebar with icons and labels.
19
6
 
20
- {{< example github="components/sidebar.md" bodyClass="!p-0" iframeHeight="600" iframeMaxHeight="640" show_dark=true >}}
7
+ ```html
21
8
  <button data-drawer-target="default-sidebar" data-drawer-toggle="default-sidebar" aria-controls="default-sidebar" type="button" class="text-heading bg-transparent box-border border border-transparent hover:bg-neutral-secondary-medium focus:ring-4 focus:ring-neutral-tertiary font-medium leading-5 rounded-base ms-3 mt-3 text-sm p-2 focus:outline-none inline-flex sm:hidden">
22
9
  <span class="sr-only">Open sidebar</span>
23
10
  <svg class="w-6 h-6" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
@@ -145,17 +132,15 @@ Use this example to show a responsive list of menu items inside the sidebar with
145
132
  </div>
146
133
  </div>
147
134
  </div>
148
- {{< /example >}}
135
+ ```
136
+
149
137
 
150
- <div class="mt-8 -mb-5">
151
- {{< requires_js >}}
152
- </div>
153
138
 
154
139
  ## Multi-level menu
155
140
 
156
141
  Use this sidebar example to create multi-level menu items by applying the `data-collapse-toggle="id"` data attribute from Flowbite and toggle the second-level menu item.
157
142
 
158
- {{< example github="components/sidebar.md" bodyClass="!p-0" iframeHeight="640" iframeMaxHeight="640" show_dark=true >}}
143
+ ```html
159
144
  <button data-drawer-target="sidebar-multi-level-sidebar" data-drawer-toggle="sidebar-multi-level-sidebar" aria-controls="sidebar-multi-level-sidebar" type="button" class="text-heading bg-transparent box-border border border-transparent hover:bg-neutral-secondary-medium focus:ring-4 focus:ring-neutral-tertiary font-medium leading-5 rounded-base ms-3 mt-3 text-sm p-2 focus:outline-none inline-flex sm:hidden">
160
145
  <span class="sr-only">Open sidebar</span>
161
146
  <svg class="w-6 h-6" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
@@ -301,13 +286,13 @@ Use this sidebar example to create multi-level menu items by applying the `data-
301
286
  </div>
302
287
  </div>
303
288
  </div>
304
- {{< /example >}}
289
+ ```
305
290
 
306
291
  ## Content separator
307
292
 
308
293
  Separate the content inside the sidebar component by applying a border separator between the two menus.
309
294
 
310
- {{< example github="components/sidebar.md" bodyClass="!p-0" iframeHeight="640" iframeMaxHeight="640" show_dark=true >}}
295
+ ```html
311
296
  <button data-drawer-target="separator-sidebar" data-drawer-toggle="separator-sidebar" aria-controls="separator-sidebar" type="button" class="text-heading bg-transparent box-border border border-transparent hover:bg-neutral-secondary-medium focus:ring-4 focus:ring-neutral-tertiary font-medium leading-5 rounded-base ms-3 mt-3 text-sm p-2 focus:outline-none inline-flex sm:hidden">
312
297
  <span class="sr-only">Open sidebar</span>
313
298
  <svg class="w-6 h-6" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
@@ -473,13 +458,13 @@ Separate the content inside the sidebar component by applying a border separator
473
458
  </div>
474
459
  </div>
475
460
  </div>
476
- {{< /example >}}
461
+ ```
477
462
 
478
463
  ## CTA button
479
464
 
480
465
  Use this example to add a CTA button inside the sidebar component and encourage your users to visit the dedicated page.
481
466
 
482
- {{< example github="components/sidebar.md" bodyClass="!p-0" iframeHeight="640" iframeMaxHeight="640" show_dark=true >}}
467
+ ```html
483
468
 
484
469
  <button data-drawer-target="cta-button-sidebar" data-drawer-toggle="cta-button-sidebar" aria-controls="cta-button-sidebar" type="button" class="text-heading bg-transparent box-border border border-transparent hover:bg-neutral-secondary-medium focus:ring-4 focus:ring-neutral-tertiary font-medium leading-5 rounded-base ms-3 mt-3 text-sm p-2 focus:outline-none inline-flex sm:hidden">
485
470
  <span class="sr-only">Open sidebar</span>
@@ -645,13 +630,13 @@ Use this example to add a CTA button inside the sidebar component and encourage
645
630
  </div>
646
631
  </div>
647
632
  </div>
648
- {{< /example >}}
633
+ ```
649
634
 
650
635
  ## Logo branding
651
636
 
652
637
  Show the logo of your brand and link back to the homepage from the top part of the sidebar.
653
638
 
654
- {{< example github="components/sidebar.md" bodyClass="!p-0" iframeHeight="640" iframeMaxHeight="640" show_dark=true >}}
639
+ ```html
655
640
  <button data-drawer-target="logo-sidebar" data-drawer-toggle="logo-sidebar" aria-controls="logo-sidebar" type="button" class="text-heading bg-transparent box-border border border-transparent hover:bg-neutral-secondary-medium focus:ring-4 focus:ring-neutral-tertiary font-medium leading-5 rounded-base ms-3 mt-3 text-sm p-2 focus:outline-none inline-flex sm:hidden">
656
641
  <span class="sr-only">Open sidebar</span>
657
642
  <svg class="w-6 h-6" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
@@ -783,13 +768,13 @@ Show the logo of your brand and link back to the homepage from the top part of t
783
768
  </div>
784
769
  </div>
785
770
  </div>
786
- {{< /example >}}
771
+ ```
787
772
 
788
773
  ## Sidebar with navbar
789
774
 
790
775
  Use this example to show a navbar together with a sidebar layout for your web application.
791
776
 
792
- {{< example github="components/sidebar.md" bodyClass="!p-0" iframeHeight="640" iframeMaxHeight="640" show_dark=true >}}
777
+ ```html
793
778
 
794
779
  <nav class="fixed top-0 z-50 w-full bg-neutral-primary-soft border-b border-default">
795
780
  <div class="px-3 py-3 lg:px-5 lg:pl-3">
@@ -968,13 +953,13 @@ Use this example to show a navbar together with a sidebar layout for your web ap
968
953
  </div>
969
954
  </div>
970
955
  </div>
971
- {{< /example >}}
956
+ ```
972
957
 
973
958
  ## Off-canvas sidebar
974
959
 
975
960
  Use this example to show the navigation as an off-canvas drawer component when clicking on an element.
976
961
 
977
- {{< example github="components/sidebar.md" show_dark=true iframeHeight="640" iframeMaxHeight="640" skeletonPlaceholders=true >}}
962
+ ```html
978
963
 
979
964
  <!-- drawer init and show -->
980
965
  <div class="text-center">
@@ -1056,7 +1041,7 @@ Use this example to show the navigation as an off-canvas drawer component when c
1056
1041
  </ul>
1057
1042
  </div>
1058
1043
  </div>
1059
- {{< /example >}}
1044
+ ```
1060
1045
 
1061
1046
  ## More examples
1062
1047