BarProgress
Overview
Progress is often used as loader. However, it suited very well statistic use cases.
In a second time, there is also CounterProgress, a Progress sub-component where main purpose is to handle the updated progress value display.
Here below are everything you have to know about Astropine’s Progress components.
Default Bar Progress
By default, duration is set to 1000ms, i.e 1sec. Bar Progress will go to 100%.
The component take initially its parent’s width.
Copied !
---
import BarProgress from "$components/progress/bar/BarProgress.astro";
---
<div class="w-64 p-8 border rounded-sm bg-white">
<BarProgress />
</div>
Default Counter Progress
By default, duration is set to 1000ms, i.e 1sec. Bar Progress will go to 100%.
The component take initially its parent’s width.
Copied !
---
import CounterProgress from "$components/progress/counter/CounterProgress.astro";
---
<div
class="w-64 p-8 flex justify-center items-center border rounded-sm bg-white"
>
<CounterProgress />
</div>