flowbite-mcp 1.0.0

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 (77) hide show
  1. package/LICENSE.md +21 -0
  2. package/README.md +324 -0
  3. package/build/index.js +975 -0
  4. package/build/server-runner.js +228 -0
  5. package/data/components/accordion.md +860 -0
  6. package/data/components/alerts.md +739 -0
  7. package/data/components/avatar.md +178 -0
  8. package/data/components/badge.md +420 -0
  9. package/data/components/banner.md +145 -0
  10. package/data/components/bottom-navigation.md +513 -0
  11. package/data/components/breadcrumb.md +273 -0
  12. package/data/components/button-group.md +410 -0
  13. package/data/components/buttons.md +405 -0
  14. package/data/components/card.md +711 -0
  15. package/data/components/carousel.md +858 -0
  16. package/data/components/chat-bubble.md +1063 -0
  17. package/data/components/clipboard.md +1029 -0
  18. package/data/components/datepicker.md +673 -0
  19. package/data/components/device-mockups.md +152 -0
  20. package/data/components/drawer.md +1353 -0
  21. package/data/components/dropdowns.md +1925 -0
  22. package/data/components/footer.md +299 -0
  23. package/data/components/forms.md +371 -0
  24. package/data/components/gallery.md +322 -0
  25. package/data/components/indicators.md +262 -0
  26. package/data/components/jumbotron.md +213 -0
  27. package/data/components/kbd.md +217 -0
  28. package/data/components/list-group.md +365 -0
  29. package/data/components/mega-menu.md +558 -0
  30. package/data/components/modal.md +1309 -0
  31. package/data/components/navbar.md +1053 -0
  32. package/data/components/pagination.md +472 -0
  33. package/data/components/popover.md +826 -0
  34. package/data/components/progress.md +95 -0
  35. package/data/components/qr-code.md +280 -0
  36. package/data/components/rating.md +323 -0
  37. package/data/components/sidebar.md +1067 -0
  38. package/data/components/skeleton.md +221 -0
  39. package/data/components/speed-dial.md +1270 -0
  40. package/data/components/spinner.md +222 -0
  41. package/data/components/stepper.md +271 -0
  42. package/data/components/tables.md +3127 -0
  43. package/data/components/tabs.md +808 -0
  44. package/data/components/timeline.md +304 -0
  45. package/data/components/toast.md +341 -0
  46. package/data/components/tooltips.md +524 -0
  47. package/data/components/typography.md +269 -0
  48. package/data/components/video.md +95 -0
  49. package/data/forms/checkbox.md +375 -0
  50. package/data/forms/file-input.md +98 -0
  51. package/data/forms/floating-label.md +185 -0
  52. package/data/forms/input-field.md +222 -0
  53. package/data/forms/number-input.md +1099 -0
  54. package/data/forms/phone-input.md +577 -0
  55. package/data/forms/radio.md +315 -0
  56. package/data/forms/range.md +83 -0
  57. package/data/forms/search-input.md +280 -0
  58. package/data/forms/select.md +259 -0
  59. package/data/forms/textarea.md +155 -0
  60. package/data/forms/timepicker.md +732 -0
  61. package/data/forms/toggle.md +176 -0
  62. package/data/plugins/charts.md +2683 -0
  63. package/data/plugins/datatables.md +1922 -0
  64. package/data/plugins/datepicker.md +5 -0
  65. package/data/plugins/wysiwyg.md +2377 -0
  66. package/data/quickstart.md +169 -0
  67. package/data/theme.md +231 -0
  68. package/data/toc.md +79 -0
  69. package/data/typography/blockquote.md +182 -0
  70. package/data/typography/headings.md +174 -0
  71. package/data/typography/hr.md +74 -0
  72. package/data/typography/images.md +168 -0
  73. package/data/typography/links.md +118 -0
  74. package/data/typography/lists.md +387 -0
  75. package/data/typography/paragraphs.md +186 -0
  76. package/data/typography/text.md +249 -0
  77. package/package.json +71 -0
@@ -0,0 +1,178 @@
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
+ 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
+
16
+ ## Default avatar
17
+
18
+ Use this example to create a circle and rounded avatar on an image element.
19
+
20
+ {{< example class="flex justify-center gap-4" github="components/avatar.md" show_dark=true >}}
21
+ <img class="w-10 h-10 rounded-full" src="/docs/images/people/profile-picture-5.jpg" alt="Rounded avatar">
22
+ <img class="w-10 h-10 rounded-base" src="/docs/images/people/profile-picture-5.jpg" alt="Default avatar">
23
+ {{< /example >}}
24
+
25
+ ## Bordered
26
+
27
+ Apply a border around the avatar component you can use the `ring-{color}` class from Tailwind CSS.
28
+
29
+ {{< example class="flex justify-center" github="components/avatar.md" show_dark=true >}}
30
+ <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 >}}
32
+
33
+ ## Placeholder icon
34
+
35
+ Use this example as a placeholder icon for the user profile when there is no custom image available.
36
+
37
+ {{< example class="flex justify-center" github="components/avatar.md" show_dark=true >}}
38
+ <div class="relative w-10 h-10 overflow-hidden bg-neutral-secondary-medium rounded-full">
39
+ <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
+ </div>
41
+ {{< /example >}}
42
+
43
+ ## Placeholder initials
44
+
45
+ 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
+
47
+ {{< example class="flex justify-center" github="components/avatar.md" show_dark=true >}}
48
+ <div class="relative inline-flex items-center justify-center w-10 h-10 overflow-hidden bg-neutral-tertiary rounded-full">
49
+ <span class="font-medium text-body">JL</span>
50
+ </div>
51
+ {{< /example >}}
52
+
53
+ ## Avatar tooltip
54
+
55
+ Use this example to show a tooltip when hovering over the avatar.
56
+
57
+ {{< example class="flex items-center justify-center pt-8 gap-4" github="components/avatar.md" show_dark=true >}}
58
+ <div>
59
+ <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
+ Jese Leos
61
+ <div class="tooltip-arrow" data-popper-arrow></div>
62
+ </div>
63
+ <img data-tooltip-target="tooltip-jese" class="w-10 h-10 rounded-base" src="/docs/images/people/profile-picture-5.jpg" alt="Medium avatar">
64
+ </div>
65
+ <div>
66
+ <div id="tooltip-roberta" 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">
67
+ Roberta Casas
68
+ <div class="tooltip-arrow" data-popper-arrow></div>
69
+ </div>
70
+ <img data-tooltip-target="tooltip-roberta" class="w-10 h-10 rounded-base" src="/docs/images/people/profile-picture-4.jpg" alt="Medium avatar">
71
+ </div>
72
+ <div>
73
+ <div id="tooltip-bonnie" 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">
74
+ Bonnie Green
75
+ <div class="tooltip-arrow" data-popper-arrow></div>
76
+ </div>
77
+ <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
+ </div>
79
+ {{< /example >}}
80
+
81
+ ## Dot indicator
82
+
83
+ Use a dot element relative to the avatar component as an indicator for the user (eg. online or offline status).
84
+
85
+ {{< example class="flex justify-center gap-4" github="components/avatar.md" show_dark=true >}}
86
+ <div class="relative">
87
+ <img class="w-10 h-10 rounded-full" src="/docs/images/people/profile-picture-5.jpg" alt="">
88
+ <span class="top-0 left-7 absolute w-3.5 h-3.5 bg-success border-2 border-buffer rounded-full"></span>
89
+ </div>
90
+ <div class="relative">
91
+ <img class="w-10 h-10 rounded-base" src="/docs/images/people/profile-picture-5.jpg" alt="">
92
+ <span class="absolute top-0 left-8 transform -translate-y-1/2 w-3.5 h-3.5 bg-danger border-2 border-buffer rounded-full"></span>
93
+ </div>
94
+ <div class="relative">
95
+ <img class="w-10 h-10 rounded-full" src="/docs/images/people/profile-picture-5.jpg" alt="">
96
+ <span class="bottom-0 left-7 absolute w-3.5 h-3.5 bg-success border-2 border-buffer rounded-full"></span>
97
+ </div>
98
+ <div class="relative">
99
+ <img class="w-10 h-10 rounded-base" src="/docs/images/people/profile-picture-5.jpg" alt="">
100
+ <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
+ </div>
102
+ {{< /example >}}
103
+
104
+ ## Stacked
105
+
106
+ Use this example if you want to stack a group of users by overlapping the avatar components.
107
+
108
+ {{< example class="flex justify-center gap-4 rtl:gap-8" github="components/avatar.md" show_dark=true >}}
109
+ <div class="flex -space-x-4 rtl:space-x-reverse">
110
+ <img class="w-10 h-10 border-2 border-buffer rounded-full" src="/docs/images/people/profile-picture-5.jpg" alt="">
111
+ <img class="w-10 h-10 border-2 border-buffer rounded-full" src="/docs/images/people/profile-picture-2.jpg" alt="">
112
+ <img class="w-10 h-10 border-2 border-buffer rounded-full" src="/docs/images/people/profile-picture-3.jpg" alt="">
113
+ <img class="w-10 h-10 border-2 border-buffer rounded-full" src="/docs/images/people/profile-picture-4.jpg" alt="">
114
+ </div>
115
+ <div class="flex -space-x-4 rtl:space-x-reverse">
116
+ <img class="w-10 h-10 border-2 border-buffer rounded-full" src="/docs/images/people/profile-picture-5.jpg" alt="">
117
+ <img class="w-10 h-10 border-2 border-buffer rounded-full" src="/docs/images/people/profile-picture-2.jpg" alt="">
118
+ <img class="w-10 h-10 border-2 border-buffer rounded-full" src="/docs/images/people/profile-picture-3.jpg" alt="">
119
+ <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
+ </div>
121
+ {{< /example >}}
122
+
123
+ ## Avatar text
124
+
125
+ 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
+
127
+ {{< example class="flex justify-center" github="components/avatar.md" show_dark=true >}}
128
+ <div class="flex items-center gap-2.5">
129
+ <img class="w-10 h-10 rounded-full" src="/docs/images/people/profile-picture-5.jpg" alt="">
130
+ <div class="font-medium text-heading">
131
+ <div>Jese Leos</div>
132
+ <div class="text-sm font-normal text-body">Joined in August 2014</div>
133
+ </div>
134
+ </div>
135
+ {{< /example >}}
136
+
137
+ ## User dropdown
138
+
139
+ Use this example if you want to show a dropdown menu when clicking on the avatar component.
140
+
141
+ {{< example class="flex justify-center gap-4" github="components/avatar.md" show_dark=true iframeHeight="360" >}}
142
+ <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
+
144
+ <!-- Dropdown menu -->
145
+ <div id="userDropdown" class="z-10 hidden bg-neutral-primary-medium border border-default-medium rounded-base shadow-lg w-44">
146
+ <div class="px-4 py-3 border-b border-default-medium text-sm text-heading">
147
+ <div class="font-medium">Bonnie Green</div>
148
+ <div class="truncate">name@flowbite.com</div>
149
+ </div>
150
+ <ul class="p-2 text-sm text-body font-medium" aria-labelledby="avatarButton">
151
+ <li>
152
+ <a href="#" class="block w-full p-2 hover:bg-neutral-tertiary-medium hover:text-heading rounded-md">Dashboard</a>
153
+ </li>
154
+ <li>
155
+ <a href="#" class="block w-full p-2 hover:bg-neutral-tertiary-medium hover:text-heading rounded-md">Settings</a>
156
+ </li>
157
+ <li>
158
+ <a href="#" class="block w-full p-2 hover:bg-neutral-tertiary-medium hover:text-heading rounded-md">Earnings</a>
159
+ </li>
160
+ <li>
161
+ <a href="#" class="block w-full p-2 hover:bg-neutral-tertiary-medium text-fg-danger rounded-md">Sign out</a>
162
+ </li>
163
+ </ul>
164
+ </div>
165
+ {{< /example >}}
166
+
167
+ ## Sizes
168
+
169
+ Choose from multiple sizing options for the avatar component from this example.
170
+
171
+ {{< example class="flex flex-wrap items-center justify-center gap-6" github="components/avatar.md" show_dark=true >}}
172
+ <img class="w-4.5 h-4.5 rounded-sm" src="/docs/images/people/profile-picture-5.jpg" alt="Extra small avatar">
173
+ <img class="w-6 h-6 rounded-sm" src="/docs/images/people/profile-picture-5.jpg" alt="Small avatar">
174
+ <img class="w-8 h-8 rounded-base" src="/docs/images/people/profile-picture-5.jpg" alt="Base avatar">
175
+ <img class="w-11 h-11 rounded-base" src="/docs/images/people/profile-picture-5.jpg" alt="Large avatar">
176
+ <img class="w-14 h-14 rounded-base" src="/docs/images/people/profile-picture-5.jpg" alt="xl avatar">
177
+ <img class="w-16 h-16 rounded-base" src="/docs/images/people/profile-picture-5.jpg" alt="2xl avatar">
178
+ {{< /example >}}