components
Tailwind CSS Progress
Progress is represented by a linear indicator that displays the user's advancement through a specific task.
Class Name | Type | Description |
---|---|---|
progress | Component | Base class for progress container component. |
progress-bar | Component | Base class for progress bar component. |
progress-step | Component | Base class for progress steps. |
progress-vertical | Modifier | Aligns the progress bar vertically. |
progress-label | Modifier | Creates the basic variant for floating labels. |
progress-neutral | Modifier | Adds ’neutral’ color to progress bar. |
progress-primary | Modifier | Adds ‘primary’ color to progress bar. |
progress-secondary | Modifier | Adds ‘secondary’ color to progress bar. |
progress-accent | Modifier | Adds ‘accent’ color to progress bar. |
progress-info | Modifier | Adds ‘info’ color to progress bar. |
progress-success | Modifier | Adds ‘success’ color to progress bar. |
progress-warning | Modifier | Adds ‘warning’ color to progress bar. |
progress-error | Modifier | Adds ’error’ color to progress bar. |
progress-striped | Modifier | Adds striped background to progress bars. |
progress-animated | Modifier | Adds animation to striped bars. |
progress-indeterminate | Modifier | Used for progress bars without specific value. |
Utilize the progress
component class for the default horizontal progress component. Use the w-{number}
utility class
to represent the progress width. Refer TailwindCSS width documentation for more
info.
<div class="progress w-56" role="progressbar" aria-label="0% Progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100">
<div class="progress-bar w-0"></div>
</div>
<div class="progress w-56" role="progressbar" aria-label="25% Progressbar" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100">
<div class="progress-bar w-1/4"></div>
</div>
<div class="progress w-56" role="progressbar" aria-label="50% Progressbar" aria-valuenow="50" aria-valuemin="0" aria-valuemax="100">
<div class="progress-bar w-1/2"></div>
</div>
<div class="progress w-56" role="progressbar" aria-label="75% Progressbar" aria-valuenow="75" aria-valuemin="0" aria-valuemax="100">
<div class="progress-bar w-3/4"></div>
</div>
<div class="progress w-56" role="progressbar" aria-label="100% Progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100">
<div class="progress-bar w-full"></div>
</div>
Use modifier class progress-vertical
for vertical progress component. Use the h-{number}
utility class to represent
the progress height. Refer TailwindCSS height documentation for more info.
<div class="progress progress-vertical h-56" role="progressbar" aria-label="0% Vertical Progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100">
<div class="progress-bar h-0"></div>
</div>
<div class="progress progress-vertical h-56" role="progressbar" aria-label="25% Vertical Progressbar" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100" >
<div class="progress-bar h-1/4"></div>
</div>
<div class="progress progress-vertical h-56" role="progressbar" aria-label="50% Vertical Progressbar" aria-valuenow="50" aria-valuemin="0" aria-valuemax="100" >
<div class="progress-bar h-1/2"></div>
</div>
<div class="progress progress-vertical h-56" role="progressbar" aria-label="75% Vertical Progressbar" aria-valuenow="75" aria-valuemin="0" aria-valuemax="100" >
<div class="progress-bar h-3/4"></div>
</div>
<div class="progress progress-vertical h-56" role="progressbar" aria-label="100% Vertical Progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" >
<div class="progress-bar h-full"></div>
</div>
Use TailwindCSS utility class h-{number}
for custom height(thickness) of progress bar.
<div class="progress w-56" role="progressbar" aria-label="Progressbar" aria-valuenow="50" aria-valuemin="0" aria-valuemax="100">
<div class="progress-bar w-1/2"></div>
</div>
<div class="progress h-2 w-56" role="progressbar" aria-label="Progressbar" aria-valuenow="50" aria-valuemin="0" aria-valuemax="100">
<div class="progress-bar w-1/2"></div>
</div>
<div class="progress h-2.5 w-56" role="progressbar" aria-label="Progressbar" aria-valuenow="50" aria-valuemin="0" aria-valuemax="100">
<div class="progress-bar w-1/2"></div>
</div>
<div class="progress h-3 w-56" role="progressbar" aria-label="Progressbar" aria-valuenow="50" aria-valuemin="0" aria-valuemax="100">
<div class="progress-bar w-1/2"></div>
</div>
<div class="progress h-4 w-56" role="progressbar" aria-label="Progressbar" aria-valuenow="50" aria-valuemin="0" aria-valuemax="100">
<div class="progress-bar w-1/2"></div>
</div>
Utilize labels for presenting progress information.
Embedding values directly into the progress-bar
will display them within the bars.
<div class="progress h-4" role="progressbar" aria-label="25% Progressbar" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100">
<div class="progress-bar w-1/4 font-light">25%</div>
</div>
<div class="progress h-4" role="progressbar" aria-label="50% Progressbar" aria-valuenow="50" aria-valuemin="0" aria-valuemax="100">
<div class="progress-bar w-1/2 font-light">50%</div>
</div>
<div class="progress h-4" role="progressbar" aria-label="75% Progressbar" aria-valuenow="75" aria-valuemin="0" aria-valuemax="100">
<div class="progress-bar w-3/4 font-light">75%</div>
</div>
<div class="progress h-4" role="progressbar" aria-label="100% Progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100">
<div class="progress-bar w-full font-light">100%</div>
</div>
Use the following example to showcase labels positioned at the end of the progress bar.
<div class="flex w-52 items-center gap-2">
<div class="progress" role="progressbar" aria-label="25% Progressbar" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100">
<div class="progress-bar w-1/4"></div>
</div>
<span class="text-base-content text-xs font-light">25%</span>
</div>
<div class="flex w-52 items-center gap-2">
<div class="progress" role="progressbar" aria-label="50% Progressbar" aria-valuenow="50" aria-valuemin="0" aria-valuemax="100">
<div class="progress-bar w-1/2"></div>
</div>
<span class="text-base-content text-xs font-light">50%</span>
</div>
<div class="flex w-52 items-center gap-2">
<div class="progress" role="progressbar" aria-label="75% Progressbar" aria-valuenow="75" aria-valuemin="0" aria-valuemax="100">
<div class="progress-bar w-3/4"></div>
</div>
<span class="text-base-content text-xs font-light">75%</span>
</div>
<div class="flex w-52 items-center gap-2">
<div class="progress" role="progressbar" aria-label="100% Progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100">
<div class="progress-bar w-full"></div>
</div>
<span class="text-base-content text-xs font-light">100%</span>
</div>
Use the following example to showcase progress bar with title label.
Title
25%Title
50%Title
75%Title
100%<div class="w-52">
<div class="mb-1 flex items-end justify-between">
<p class="text-base-content text-xs font-medium">Title</p>
<span class="text-base-content text-xs font-light">25%</span>
</div>
<div class="progress" role="progressbar" aria-label="25% Progressbar" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100">
<div class="progress-bar w-1/4"></div>
</div>
</div>
<div class="w-52">
<div class="mb-1 flex items-end justify-between">
<p class="text-base-content text-xs font-medium">Title</p>
<span class="text-base-content text-xs font-light">50%</span>
</div>
<div class="progress" role="progressbar" aria-label="50% Progressbar" aria-valuenow="50" aria-valuemin="0" aria-valuemax="100">
<div class="progress-bar w-1/2"></div>
</div>
</div>
<div class="w-52">
<div class="mb-1 flex items-end justify-between">
<p class="text-base-content text-xs font-medium">Title</p>
<span class="text-base-content text-xs font-light">75%</span>
</div>
<div class="progress" role="progressbar" aria-label="75% Progressbar" aria-valuenow="75" aria-valuemin="0" aria-valuemax="100">
<div class="progress-bar w-3/4"></div>
</div>
</div>
<div class="w-52">
<div class="mb-1 flex items-end justify-between">
<p class="text-base-content text-xs font-medium">Title</p>
<span class="text-base-content text-xs font-light">100%</span>
</div>
<div class="progress" role="progressbar" aria-label="100% Progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100">
<div class="progress-bar w-full"></div>
</div>
</div>
Use the following example to showcase floating labels for progress bar. Use modifier class progress-label
for basic
floating label & position it using arbitrary class ms-[calc(X% - Yrem)]
, where X
is progress bar width(%) & Y
is
half the width of floating label.
<div class="flex w-52 flex-col gap-1">
<span class="progress-label ms-[calc(25%-1.25rem)]">25%</span>
<div class="progress h-2" role="progressbar" aria-label="25% Progressbar" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100">
<div class="progress-bar w-1/4"></div>
</div>
</div>
<div class="flex w-52 flex-col gap-1">
<span class="progress-label ms-[calc(50%-1.25rem)]">50%</span>
<div class="progress h-2" role="progressbar" aria-label="50% Progressbar" aria-valuenow="50" aria-valuemin="0" aria-valuemax="100">
<div class="progress-bar w-1/2"></div>
</div>
</div>
<div class="flex w-52 flex-col gap-1">
<span class="progress-label ms-[calc(75%-1.25rem)]">75%</span>
<div class="progress h-2" role="progressbar" aria-label="75% Progressbar" aria-valuenow="75" aria-valuemin="0" aria-valuemax="100">
<div class="progress-bar w-3/4"></div>
</div>
</div>
<div class="flex w-52 flex-col gap-1">
<span class="progress-label ms-[calc(100%-1.4rem)]">100%</span>
<div class="progress h-2" role="progressbar" aria-label="100% Progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100">
<div class="progress-bar w-full"></div>
</div>
</div>
Use the labels to showcase progress for vertical bars.
Use below given examples to showcase labels within squared progress bars in center.
<div class="progress progress-vertical h-56 w-4 rounded-none" role="progressbar" aria-label="25% Progressbar" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100">
<div class="progress-bar h-1/4 rounded-none font-light"><span class="-rotate-90">25%</span></div>
</div>
<div class="progress progress-vertical h-56 w-4 rounded-none" role="progressbar" aria-label="50% Progressbar" aria-valuenow="50" aria-valuemin="0" aria-valuemax="100">
<div class="progress-bar h-1/2 rounded-none font-light"><span class="-rotate-90">50%</span></div>
</div>
<div class="progress progress-vertical h-56 w-4 rounded-none" role="progressbar" aria-label="75% Progressbar" aria-valuenow="75" aria-valuemin="0" aria-valuemax="100">
<div class="progress-bar h-3/4 rounded-none font-light"><span class="-rotate-90">75%</span></div>
</div>
<div class="progress progress-vertical h-56 w-4 rounded-none" role="progressbar" aria-label="100% Progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100">
<div class="progress-bar h-full rounded-none font-light"><span class="-rotate-90">100%</span></div>
</div>
Use below given examples to showcase labels at top of vertical progress bars.
<div class="flex h-56 flex-col items-center gap-2">
<span class="text-base-content text-xs font-light">25%</span>
<div class="progress progress-vertical w-4" role="progressbar" aria-label="25% Progressbar" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100">
<div class="progress-bar h-1/4"></div>
</div>
</div>
<div class="flex h-56 flex-col items-center gap-2">
<span class="text-base-content text-xs font-light">50%</span>
<div class="progress progress-vertical w-4" role="progressbar" aria-label="50% Progressbar" aria-valuenow="50" aria-valuemin="0" aria-valuemax="100">
<div class="progress-bar h-1/2"></div>
</div>
</div>
<div class="flex h-56 flex-col items-center gap-2">
<span class="text-base-content text-xs font-light">75%</span>
<div class="progress progress-vertical w-4" role="progressbar" aria-label="75% Progressbar" aria-valuenow="75" aria-valuemin="0" aria-valuemax="100">
<div class="progress-bar h-3/4"></div>
</div>
</div>
<div class="flex h-56 flex-col items-center gap-2">
<span class="text-base-content text-xs font-light">100%</span>
<div class="progress progress-vertical w-4" role="progressbar" aria-label="100% Progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100">
<div class="progress-bar h-full"></div>
</div>
</div>
Use below given examples to showcase labels with title in vertical progress bars.
Title
Title
Title
Title
<div class="flex h-56 flex-col items-center justify-between gap-1">
<span class="text-base-content text-xs font-light">25%</span>
<div class="progress progress-vertical w-4" role="progressbar" aria-label="25% Progressbar" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100">
<div class="progress-bar h-1/4"></div>
</div>
<p class="text-base-content text-xs font-medium">Title</p>
</div>
<div class="flex h-56 flex-col items-center justify-between gap-1">
<span class="text-base-content text-xs font-light">50%</span>
<div class="progress progress-vertical w-4" role="progressbar" aria-label="50% Progressbar" aria-valuenow="50" aria-valuemin="0" aria-valuemax="100">
<div class="progress-bar h-1/2"></div>
</div>
<p class="text-base-content text-xs font-medium">Title</p>
</div>
<div class="flex h-56 flex-col items-center justify-between gap-1">
<span class="text-base-content text-xs font-light">75%</span>
<div class="progress progress-vertical w-4" role="progressbar" aria-label="75% Progressbar" aria-valuenow="75" aria-valuemin="0" aria-valuemax="100">
<div class="progress-bar h-3/4"></div>
</div>
<p class="text-base-content text-xs font-medium">Title</p>
</div>
<div class="flex h-56 flex-col items-center justify-between gap-1">
<span class="text-base-content text-xs font-light">100%</span>
<div class="progress progress-vertical w-4" role="progressbar" aria-label="100% Progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100">
<div class="progress-bar h-full"></div>
</div>
<p class="text-base-content text-xs font-medium">Title</p>
</div>
Implement floating labels for vertical progress bars using the provided example. Utilize the progress-label
modifier
class for the basic floating label and position it with the bottom-[calc(X% - Yrem)]
class alongside classes absolute start-0
. Here, X
represents the progress bar height percentage, and Y
signifies half the height of the floating
label within the relative TailwindCSS position class.
<div class="flex gap-5">
<div class="flex h-56 gap-1">
<div class="relative w-10"><span class="progress-label absolute bottom-[calc(25%-0.75rem)] start-0">25%</span></div>
<div class="progress progress-vertical w-2" role="progressbar" aria-label="25% Progressbar" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100" >
<div class="progress-bar h-1/4"></div>
</div>
</div>
<div class="flex h-56 gap-1">
<div class="progress progress-vertical w-2" role="progressbar" aria-label="50% Progressbar" aria-valuenow="50" aria-valuemin="0" aria-valuemax="100" >
<div class="progress-bar h-1/2"></div>
</div>
<div class="relative w-10"><span class="progress-label absolute bottom-[calc(50%-0.75rem)] start-0">50%</span></div>
</div>
</div>
<div class="flex gap-5">
<div class="flex h-56 gap-1">
<div class="relative w-10">
<span class="progress-label border-primary text-primary absolute bottom-[calc(75%-0.75rem)] start-0">75%</span>
</div>
<div class="progress progress-vertical w-2" role="progressbar" aria-label="75% Progressbar" aria-valuenow="75" aria-valuemin="0" aria-valuemax="100" >
<div class="progress-bar progress-primary h-3/4"></div>
</div>
</div>
<div class="flex h-56 gap-1">
<div class="progress progress-vertical w-2" role="progressbar" aria-label="100% Progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" >
<div class="progress-bar progress-primary h-full"></div>
</div>
<div class="relative w-11">
<span class="progress-label border-primary text-primary absolute bottom-[calc(100%-0.75rem)] start-0">100%</span>
</div>
</div>
</div>
To apply semantic colors to progress bars, utilize the progress-{semantic-color}
class alongside the component class
progress-bar
.
<div class="progress w-56" role="progressbar" aria-label="Neutral Progressbar" aria-valuenow="75" aria-valuemin="0" aria-valuemax="100">
<div class="progress-bar progress-neutral w-3/4"></div>
</div>
<div class="progress w-56" role="progressbar" aria-label="Primary Progressbar" aria-valuenow="75" aria-valuemin="0" aria-valuemax="100">
<div class="progress-bar progress-primary w-3/4"></div>
</div>
<div class="progress w-56" role="progressbar" aria-label="Secondary Progressbar" aria-valuenow="75" aria-valuemin="0" aria-valuemax="100">
<div class="progress-bar progress-secondary w-3/4"></div>
</div>
<div class="progress w-56" role="progressbar" aria-label="Accent Progressbar" aria-valuenow="75" aria-valuemin="0" aria-valuemax="100">
<div class="progress-bar progress-accent w-3/4"></div>
</div>
<div class="progress w-56" role="progressbar" aria-label="Info Progressbar" aria-valuenow="75" aria-valuemin="0" aria-valuemax="100">
<div class="progress-bar progress-info w-3/4"></div>
</div>
<div class="progress w-56" role="progressbar" aria-label="Success Progressbar" aria-valuenow="75" aria-valuemin="0" aria-valuemax="100">
<div class="progress-bar progress-success w-3/4"></div>
</div>
<div class="progress w-56" role="progressbar" aria-label="Warning Progressbar" aria-valuenow="75" aria-valuemin="0" aria-valuemax="100">
<div class="progress-bar progress-warning w-3/4"></div>
</div>
<div class="progress w-56" role="progressbar" aria-label="Error Progressbar" aria-valuenow="75" aria-valuemin="0" aria-valuemax="100">
<div class="progress-bar progress-error w-3/4"></div>
</div>
Include the modifier class progress-striped
with the progress-bar
component class for striped progress bars.
<div class="progress w-56" role="progressbar" aria-label="Neutral Progressbar" aria-valuenow="75" aria-valuemin="0" aria-valuemax="100">
<div class="progress-bar progress-neutral progress-striped w-3/4"></div>
</div>
<div class="progress w-56" role="progressbar" aria-label="Primary Progressbar" aria-valuenow="75" aria-valuemin="0" aria-valuemax="100">
<div class="progress-bar progress-primary progress-striped w-3/4"></div>
</div>
<div class="progress w-56" role="progressbar" aria-label="Secondary Progressbar" aria-valuenow="75" aria-valuemin="0" aria-valuemax="100">
<div class="progress-bar progress-secondary progress-striped w-3/4"></div>
</div>
<div class="progress w-56" role="progressbar" aria-label="Accent Progressbar" aria-valuenow="75" aria-valuemin="0" aria-valuemax="100">
<div class="progress-bar progress-accent progress-striped w-3/4"></div>
</div>
<div class="progress w-56" role="progressbar" aria-label="Info Progressbar" aria-valuenow="75" aria-valuemin="0" aria-valuemax="100">
<div class="progress-bar progress-info progress-striped w-3/4"></div>
</div>
<div class="progress w-56" role="progressbar" aria-label="Success Progressbar" aria-valuenow="75" aria-valuemin="0" aria-valuemax="100">
<div class="progress-bar progress-success progress-striped w-3/4"></div>
</div>
<div class="progress w-56" role="progressbar" aria-label="Warning Progressbar" aria-valuenow="75" aria-valuemin="0" aria-valuemax="100">
<div class="progress-bar progress-warning progress-striped w-3/4"></div>
</div>
<div class="progress w-56" role="progressbar" aria-label="Error Progressbar" aria-valuenow="75" aria-valuemin="0" aria-valuemax="100">
<div class="progress-bar progress-error progress-striped w-3/4"></div>
</div>
Utilize the modifier classes progress-striped
and progress-animated
in conjunction with the component class
progress-bar
to create animated striped bars.
<div class="progress w-56" role="progressbar" aria-label="Neutral Progressbar" aria-valuenow="75" aria-valuemin="0" aria-valuemax="100">
<div class="progress-bar progress-neutral progress-striped progress-animated w-3/4"></div>
</div>
<div class="progress w-56" role="progressbar" aria-label="Primary Progressbar" aria-valuenow="75" aria-valuemin="0" aria-valuemax="100">
<div class="progress-bar progress-primary progress-striped progress-animated w-3/4"></div>
</div>
<div class="progress w-56" role="progressbar" aria-label="Secondary Progressbar" aria-valuenow="75" aria-valuemin="0" aria-valuemax="100">
<div class="progress-bar progress-secondary progress-striped progress-animated w-3/4"></div>
</div>
<div class="progress w-56" role="progressbar" aria-label="Accent Progressbar" aria-valuenow="75" aria-valuemin="0" aria-valuemax="100">
<div class="progress-bar progress-accent progress-striped progress-animated w-3/4"></div>
</div>
<div class="progress w-56" role="progressbar" aria-label="Info Progressbar" aria-valuenow="75" aria-valuemin="0" aria-valuemax="100">
<div class="progress-bar progress-info progress-striped progress-animated w-3/4"></div>
</div>
<div class="progress w-56" role="progressbar" aria-label="Success Progressbar" aria-valuenow="75" aria-valuemin="0" aria-valuemax="100">
<div class="progress-bar progress-success progress-striped progress-animated w-3/4"></div>
</div>
<div class="progress w-56" role="progressbar" aria-label="Warning Progressbar" aria-valuenow="75" aria-valuemin="0" aria-valuemax="100">
<div class="progress-bar progress-warning progress-striped progress-animated w-3/4"></div>
</div>
<div class="progress w-56" role="progressbar" aria-label="Error Progressbar" aria-valuenow="75" aria-valuemin="0" aria-valuemax="100">
<div class="progress-bar progress-error progress-striped progress-animated w-3/4"></div>
</div>
This is the default shape of progress bars. Refer TailwindCSS border radius documentation for more options.
<div class="progress w-56" role="progressbar" aria-label="Rounded Progressbar" aria-valuenow="75" aria-valuemin="0" aria-valuemax="100">
<div class="progress-bar progress-primary w-3/4"></div>
</div>
Apply the TailwindCSS utility class rounded-none
to both the component classes progress
and progress-bar
to create
a squared progress bar.
<div class="progress w-56 rounded-none" role="progressbar" aria-label="Squared Progressbar" aria-valuenow="75" aria-valuemin="0" aria-valuemax="100">
<div class="progress-bar progress-primary w-3/4 rounded-none"></div>
</div>
Utilize the provided examples to implement multiple progress bars along with corresponding options such as default, striped, and animated.
<!-- Default -->
<div>
<div class="text-base-content mb-1 text-sm font-semibold">Default</div>
<div class="progress h-3">
<div class="progress-bar progress-primary w-1/4 rounded-e-none"></div>
<div class="progress-bar progress-success w-1/4 rounded-none"></div>
<div class="progress-bar progress-error w-1/4 rounded-s-none"></div>
</div>
</div>
<!-- Striped -->
<div>
<div class="text-base-content mb-1 text-sm font-semibold">Striped</div>
<div class="progress h-3">
<div class="progress-bar progress-primary progress-striped w-1/4 rounded-e-none"></div>
<div class="progress-bar progress-success progress-striped w-1/4 rounded-none"></div>
<div class="progress-bar progress-error progress-striped w-1/4 rounded-s-none"></div>
</div>
</div>
<!-- Animated -->
<div>
<div class="text-base-content mb-1 text-sm font-semibold">Animated</div>
<div class="progress h-3">
<div class="progress-bar progress-primary progress-striped progress-animated w-1/4 rounded-e-none"></div>
<div class="progress-bar progress-success progress-striped progress-animated w-1/4 rounded-none"></div>
<div class="progress-bar progress-error progress-striped progress-animated w-1/4 rounded-s-none"></div>
</div>
</div>
Apply the modifier class progress-indeterminate
to the component class progress-bar
to create a progress bar without
a specific value.
<div class="progress w-56">
<div class="progress-bar progress-indeterminate"></div>
</div>
<div class="progress w-56">
<div class="progress-bar progress-indeterminate progress-primary"></div>
</div>
<div class="progress w-56">
<div class="progress-bar progress-indeterminate progress-secondary"></div>
</div>
<div class="progress w-56">
<div class="progress-bar progress-indeterminate progress-accent"></div>
</div>
<div class="progress w-56">
<div class="progress-bar progress-indeterminate progress-info"></div>
</div>
<div class="progress w-56">
<div class="progress-bar progress-indeterminate progress-success"></div>
</div>
<div class="progress w-56">
<div class="progress-bar progress-indeterminate progress-warning"></div>
</div>
<div class="progress w-56">
<div class="progress-bar progress-indeterminate progress-error"></div>
</div>
Implement the component class progress-step
for the steps of the progress bar according to the provided examples.
<!-- Step variant 1 -->
<div class="flex max-w-40 items-center gap-x-1">
<div class="progress-step bg-primary" role="progressbar" aria-label="Progressbar" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100" ></div>
<div class="progress-step bg-primary/10" role="progressbar" aria-label="Progressbar" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100" ></div>
<div class="progress-step bg-primary/10" role="progressbar" aria-label="Progressbar" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100" ></div>
<div class="progress-step bg-primary/10" role="progressbar" aria-label="Progressbar" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100" ></div>
<div>
<span class="text-xs text-primary ms-1 font-medium">25%</span>
</div>
</div>
<!-- Step variant 1.1 -->
<div class="flex items-center gap-x-1">
<div class="progress-step bg-primary" role="progressbar" aria-label="Progressbar" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100" ></div>
<div class="progress-step bg-primary/10" role="progressbar" aria-label="Progressbar" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100" ></div>
<div class="progress-step bg-primary/10" role="progressbar" aria-label="Progressbar" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100" ></div>
<div class="progress-step bg-primary/10" role="progressbar" aria-label="Progressbar" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100" ></div>
<div>
<span class="text-xs text-primary ms-1 font-medium">25%</span>
</div>
</div>
<!-- Step variant 2 -->
<div class="flex max-w-40 items-center gap-x-1">
<div class="progress-step bg-warning" role="progressbar" aria-label="Progressbar" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100" ></div>
<div class="progress-step bg-warning" role="progressbar" aria-label="Progressbar" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100" ></div>
<div class="progress-step" role="progressbar" aria-label="Progressbar" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100"></div>
<div class="progress-step" role="progressbar" aria-label="Progressbar" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100"></div>
<div>
<span class="text-xs text-warning ms-1 font-medium">50%</span>
</div>
</div>
<!-- Step variant 2.1 -->
<div class="flex items-center gap-x-1">
<div class="progress-step bg-warning" role="progressbar" aria-label="Progressbar" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100" ></div>
<div class="progress-step bg-warning" role="progressbar" aria-label="Progressbar" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100" ></div>
<div class="progress-step" role="progressbar" aria-label="Progressbar" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100"></div>
<div class="progress-step" role="progressbar" aria-label="Progressbar" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100"></div>
<div>
<span class="text-xs text-warning ms-1 font-medium">50%</span>
</div>
</div>
<!-- Step variant 3 -->
<div class="flex max-w-40 items-center gap-x-1">
<div class="progress-step bg-success" role="progressbar" aria-label="Progressbar" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100" ></div>
<div class="progress-step bg-success" role="progressbar" aria-label="Progressbar" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100" ></div>
<div class="progress-step bg-success" role="progressbar" aria-label="Progressbar" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100" ></div>
<div class="progress-step bg-success" role="progressbar" aria-label="Progressbar" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100" ></div>
<div>
<span class="text-xs text-success ms-1 font-medium">100%</span>
</div>
</div>
<!-- Step variant 3.1 -->
<div class="flex items-center gap-x-1">
<div class="progress-step bg-success" role="progressbar" aria-label="Progressbar" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100" ></div>
<div class="progress-step bg-success" role="progressbar" aria-label="Progressbar" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100" ></div>
<div class="progress-step bg-success" role="progressbar" aria-label="Progressbar" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100" ></div>
<div class="progress-step bg-success" role="progressbar" aria-label="Progressbar" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100" ></div>
<div>
<span class="text-xs text-success ms-1 font-medium">100%</span>
</div>
</div>
<!-- Step variant 4 -->
<div class="flex max-w-40 items-center gap-x-1">
<div class="progress-step bg-info" role="progressbar" aria-label="Progressbar" aria-valuenow="10" aria-valuemin="0" aria-valuemax="100"></div>
<div class="progress-step bg-info" role="progressbar" aria-label="Progressbar" aria-valuenow="10" aria-valuemin="0" aria-valuemax="100"></div>
<div class="progress-step bg-info" role="progressbar" aria-label="Progressbar" aria-valuenow="10" aria-valuemin="0" aria-valuemax="100"></div>
<div class="progress-step bg-info" role="progressbar" aria-label="Progressbar" aria-valuenow="10" aria-valuemin="0" aria-valuemax="100"></div>
<div class="progress-step bg-info" role="progressbar" aria-label="Progressbar" aria-valuenow="10" aria-valuemin="0" aria-valuemax="100"></div>
<div class="progress-step bg-info" role="progressbar" aria-label="Progressbar" aria-valuenow="10" aria-valuemin="0" aria-valuemax="100"></div>
<div class="progress-step bg-info" role="progressbar" aria-label="Progressbar" aria-valuenow="10" aria-valuemin="0" aria-valuemax="100"></div>
<div class="progress-step bg-info" role="progressbar" aria-label="Progressbar" aria-valuenow="10" aria-valuemin="0" aria-valuemax="100"></div>
<div class="progress-step bg-info" role="progressbar" aria-label="Progressbar" aria-valuenow="10" aria-valuemin="0" aria-valuemax="100"></div>
<div class="progress-step bg-info" role="progressbar" aria-label="Progressbar" aria-valuenow="10" aria-valuemin="0" aria-valuemax="100"></div>
<div>
<span class="text-info ms-1"><span class="icon-[tabler--circle-check-filled] mt-1 size-6"></span></span>
</div>
</div>
<!-- Step variant 4.1 -->
<div class="flex items-center gap-x-1">
<div class="progress-step bg-info" role="progressbar" aria-label="Progressbar" aria-valuenow="10" aria-valuemin="0" aria-valuemax="100"></div>
<div class="progress-step bg-info" role="progressbar" aria-label="Progressbar" aria-valuenow="10" aria-valuemin="0" aria-valuemax="100"></div>
<div class="progress-step bg-info" role="progressbar" aria-label="Progressbar" aria-valuenow="10" aria-valuemin="0" aria-valuemax="100"></div>
<div class="progress-step bg-info" role="progressbar" aria-label="Progressbar" aria-valuenow="10" aria-valuemin="0" aria-valuemax="100"></div>
<div class="progress-step bg-info" role="progressbar" aria-label="Progressbar" aria-valuenow="10" aria-valuemin="0" aria-valuemax="100"></div>
<div class="progress-step bg-info" role="progressbar" aria-label="Progressbar" aria-valuenow="10" aria-valuemin="0" aria-valuemax="100"></div>
<div class="progress-step bg-info" role="progressbar" aria-label="Progressbar" aria-valuenow="10" aria-valuemin="0" aria-valuemax="100"></div>
<div class="progress-step bg-info" role="progressbar" aria-label="Progressbar" aria-valuenow="10" aria-valuemin="0" aria-valuemax="100"></div>
<div class="progress-step bg-info" role="progressbar" aria-label="Progressbar" aria-valuenow="10" aria-valuemin="0" aria-valuemax="100"></div>
<div class="progress-step bg-info" role="progressbar" aria-label="Progressbar" aria-valuenow="10" aria-valuemin="0" aria-valuemax="100"></div>
<div>
<span class="text-info ms-1"><span class="icon-[tabler--circle-check-filled] mt-1 size-6"></span></span>
</div>
</div>