x
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<!-- Label Inside -->
<div class="w-full bg-neutral-quaternary rounded-full" aria-valuemax="100" aria-valuemin="0" aria-valuenow="45" role="progressbar">
<div class="bg-brand text-xs font-medium text-white text-center py-0.5 leading-none rounded-full h-4 flex items-center justify-center" style="width: 45%">
45%
</div>
</div>
<!-- Label Outside -->
<div class="flex justify-between mb-1">
<span class="text-sm font-medium text-body">Flowbite</span>
<span class="text-sm font-medium text-body">45%</span>
</div>
<div class="w-full bg-neutral-quaternary rounded-full h-2" aria-label="Flowbite" aria-valuemax="100" aria-valuemin="0" aria-valuenow="45" role="progressbar">
<div class="bg-brand h-2 rounded-full" style="width: 45%">
</div>
</div>
1
2
3
4
5
# Label Inside
render(Flowbite::Progress.new(label_position: :inside, progress: 45))
# Label Outside
render(Flowbite::Progress.new(label: "Flowbite", label_position: :outside, progress: 45))