@@ -59,12 +59,12 @@ Use the `text-sm` utility class and increase the paddings to create a larger var
5959Use these examples to create large and bordered styled badges.
6060
6161{{< example class="flex justify-center gap-4" github="components/badge.md" show_dark=true >}}
62- <span class =" px-2 py-1 ring-1 ring-inset ring-brand-subtle text-fg-brand-strong text-sm font-medium rounded bg-brand-softer " >Brand</span >
63- <span class =" px-2 py-1 ring-1 ring-inset ring-default text-heading text-sm font-medium rounded bg-neutral-primary-soft " >Alternative</span >
64- <span class =" px-2 py-1 ring-1 ring-inset ring-default-medium text-heading text-sm font-medium rounded bg-neutral-secondary-medium " >Gray</span >
65- <span class =" px-2 py-1 ring-1 ring-inset ring-danger-subtle text-fg-danger-strong text-sm font-medium rounded bg-danger-soft " >Danger</span >
66- <span class =" px-2 py-1 ring-1 ring-inset ring-success-subtle text-fg-success-strong text-sm font-medium rounded bg-success-soft " >Success</span >
67- <span class =" px-2 py-1 ring-1 ring-inset ring-warning-subtle text-fg-warning text-sm font-medium rounded bg-warning-soft " >Warning</span >
62+ <span class =" inline-flex items-center px-2 py-1 ring-1 ring-inset ring-brand-subtle text-fg-brand-strong text-sm font-medium rounded bg-brand-softer" >Brand</span >
63+ <span class =" inline-flex items-center px-2 py-1 ring-1 ring-inset ring-default text-heading text-sm font-medium rounded bg-neutral-primary-soft" >Alternative</span >
64+ <span class =" inline-flex items-center px-2 py-1 ring-1 ring-inset ring-default-medium text-heading text-sm font-medium rounded bg-neutral-secondary-medium" >Gray</span >
65+ <span class =" inline-flex items-center px-2 py-1 ring-1 ring-inset ring-danger-subtle text-fg-danger-strong text-sm font-medium rounded bg-danger-soft" >Danger</span >
66+ <span class =" inline-flex items-center px-2 py-1 ring-1 ring-inset ring-success-subtle text-fg-success-strong text-sm font-medium rounded bg-success-soft" >Success</span >
67+ <span class =" inline-flex items-center px-2 py-1 ring-1 ring-inset ring-warning-subtle text-fg-warning text-sm font-medium rounded bg-warning-soft" >Warning</span >
6868{{< /example >}}
6969
7070## Pill badges
@@ -141,28 +141,28 @@ You can also use [SVG icons](https://flowbite.com/icons/) inside the badge eleme
141141
142142Use these large badges with SVG icons for an enhanced representation.
143143
144- {{< example class="flex justify-center gap-4" github="components/badge.md" show_dark=true >}}
145- <span class =" inline-flex items-center bg-brand-softer border border-brand-subtle text-fg-brand-strong text-sm font-medium px-2 py-1 rounded " >
144+ {{< example class="flex-wrap justify-center gap-4" github="components/badge.md" show_dark=true >}}
145+ <span class =" inline-flex items-center bg-brand-softer border border-brand-subtle text-fg-brand-strong text-sm font-medium leading-none px-2 py-1 rounded " >
146146<svg class =" w-3.5 h-3.5 me-1.5 " 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 =" M12 8v4l3 3m6-3a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z " /></svg >
1471472 mins ago
148148</span >
149- <span class =" inline-flex items-center bg-neutral-primary-soft border border-default text-heading text-sm font-medium px-2 py-1 rounded " >
149+ <span class =" inline-flex items-center bg-neutral-primary-soft border border-default text-heading text-sm font-medium leading-none px-2 py-1 rounded " >
150150<svg class =" w-3.5 h-3.5 me-1.5 " 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 =" M12 8v4l3 3m6-3a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z " /></svg >
1511512 mins ago
152152</span >
153- <span class =" inline-flex items-center bg-neutral-secondary-medium border border-default-medium text-heading text-sm font-medium px-2 py-1 rounded " >
153+ <span class =" inline-flex items-center bg-neutral-secondary-medium border border-default-medium text-heading text-sm font-medium leading-none px-2 py-1 rounded " >
154154<svg class =" w-3.5 h-3.5 me-1.5 " 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 =" M12 8v4l3 3m6-3a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z " /></svg >
1551552 mins ago
156156</span >
157- <span class =" inline-flex items-center bg-danger-soft border border-danger-subtle text-fg-danger-strong text-sm font-medium px-2 py-1 rounded " >
157+ <span class =" inline-flex items-center bg-danger-soft border border-danger-subtle text-fg-danger-strong text-sm font-medium leading-none px-2 py-1 rounded " >
158158<svg class =" w-3.5 h-3.5 me-1.5 " 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 =" M12 8v4l3 3m6-3a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z " /></svg >
1591592 mins ago
160160</span >
161- <span class =" inline-flex items-center bg-success-soft border border-success-subtle text-fg-success-strong text-sm font-medium px-2 py-1 rounded " >
161+ <span class =" inline-flex items-center bg-success-soft border border-success-subtle text-fg-success-strong text-sm font-medium leading-none px-2 py-1 rounded " >
162162<svg class =" w-3.5 h-3.5 me-1.5 " 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 =" M12 8v4l3 3m6-3a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z " /></svg >
1631632 mins ago
164164</span >
165- <span class =" inline-flex items-center bg-warning-soft border border-warning-subtle text-fg-warning text-sm font-medium px-2 py-1 rounded " >
165+ <span class =" inline-flex items-center bg-warning-soft border border-warning-subtle text-fg-warning text-sm font-medium leading-none px-2 py-1 rounded " >
166166<svg class =" w-3.5 h-3.5 me-1.5 " 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 =" M12 8v4l3 3m6-3a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z " /></svg >
1671672 mins agong
168168</span >
@@ -253,9 +253,9 @@ Use these badges with a dot for an alternative style of showing content.
253253
254254Use this example to show an animated SVG loader inside the badge component.
255255
256- {{< example class="flex justify-center gap-4" github="components/badge.md" show_dark=true >}}
256+ {{< example class="flex flex-wrap justify-center gap-4" github="components/badge.md" show_dark=true >}}
257257<span class =" flex items-center bg-brand-softer border border-brand-subtle text-fg-brand-strong text-xs font-medium px-1.5 py-0.5 rounded gap-1 " >
258- <svg aria-hidden="true" role="status" class="w-3 h-3 me-1 animate-spin text-fg-brand-soft" viewBox="0 0 100 101" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z" fill="currentColor"/><path d="M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z" fill="#1C64F2"/></svg>
258+ <svg aria-hidden="true" role="status" class="w-3 h-3 me-1 animate-spin text-fg-brand" viewBox="0 0 100 101" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z" fill="currentColor"/><path d="M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z" fill="#1C64F2"/></svg>
259259 <span >2 mins ago</span >
260260</span >
261261<span class =" flex items-center bg-neutral-primary-soft border border-default text-heading text-xs font-medium px-1.5 py-0.5 rounded gap-1 " >
@@ -284,7 +284,7 @@ Use this example to show an animated SVG loader inside the badge component.
284284
285285Use the ` data-dismiss-target ` data attribute to dismiss the current badge where the value is the id of the target element using a transition animation. These can be used as tags inside an input component.
286286
287- {{< example class="flex justify-center gap-4" github="components/badge.md" show_dark=true >}}
287+ {{< example class="flex flex-wrap justify-center gap-4" github="components/badge.md" show_dark=true >}}
288288<span id =" badge-dismiss-brand " class =" inline-flex items-center bg-brand-softer border border-brand-subtle text-fg-brand-strong text-xs font-medium ps-1.5 pe-0.5 py-0.5 rounded gap-1 " >
289289<span >Brand</span >
290290<button type =" button " class =" inline-flex items-center p-0.5 text-sm bg-transparent rounded-xs hover:bg-brand-soft " data-dismiss-target =" #badge-dismiss-brand " aria-label =" Remove " >
@@ -338,7 +338,7 @@ Use the `data-dismiss-target` data attribute to dismiss the current badge where
338338
339339These components can be used to show avatar images inside of dismissible badges.
340340
341- {{< example class="flex justify-center gap-4" github="components/badge.md" show_dark=true >}}
341+ {{< example class="flex flex-wrap justify-center gap-4" github="components/badge.md" show_dark=true >}}
342342<span id =" badge-avatar-dismiss-brand " class =" inline-flex items-center bg-brand-softer border border-brand-subtle text-fg-brand-strong text-xs font-medium ps-1.5 pe-0.5 py-0.5 rounded gap-1 " >
343343<img class =" w-3.5 h-3.5 rounded-full me-1 " src =" /docs/images/people/profile-picture-5.jpg " alt =" Rounded avatar " >
344344Brand
0 commit comments