Skip to content

Latest commit

 

History

History
95 lines (77 loc) · 3.73 KB

File metadata and controls

95 lines (77 loc) · 3.73 KB
layout docs
title Tailwind CSS Progress Bar - Flowbite
description Use the progress bar component to show the completion rate of a data indicator or use it as a loader element
group components
toc true
previous Popover
previousLink components/popover/
next Rating
nextLink components/rating/

The progress bar component can be used as an indicator to show the completion rate of data sets or it can be used as an animated loader component. There are multiple sizes, colors, and styles available.

Default progress bar

Use the following example of a progress bar element to show a completion rate of 45% by using an inline style and the utility classes from Tailwind CSS.

{{< example github="components/progress.md" show_dark=true >}}

{{< /example >}}

Sizes

You can also use different sizes by using various sizing utility classes from Flowbite and Tailwind CSS.

{{< example class="space-y-4" github="components/progress.md" show_dark=true >}}

Small
Default
Large
{{< /example >}}

With label inside

Here is an example of using a progress bar with the label inside the bar.

{{< example github="components/progress.md" show_dark=true >}}

45%
{{< /example >}}

With label outside

And this is an example of using a progress bar outside the bar.

{{< example github="components/progress.md" show_dark=true >}}

Flowbite 45%
{{< /example >}}

Colors

You can also apply any color using the bg-{color} utility classes from Tailwind CSS and Flowbite.

{{< example class="space-y-4" github="components/progress.md" show_dark=true >}}

Dark
Brand
Success
Danger
Danger

{{< /example >}}