Data Display progressdatastat
Minimal Progress List
Set of progress bars labels for small dashboards.
Preview
Storage42%
Bandwidth68%
Usage
Copy the full block below to use this component with its imports.
astro
---
import { MinimalProgressList } from 'astro-component-kit';
---
<ProgressListSmall>Content</ProgressListSmall> ---
import { MinimalProgressList } from 'astro-component-kit';
---
<ProgressListSmall>Content</ProgressListSmall> Manual Installation
If you are not using the npm package, create a new file src/components/lib/MinimalProgressList.astro and paste the following code:
astro
---
---
<div class="p-list">
<div class="p-row"><span>Storage</span><strong>42%</strong></div>
<div class="p-bar"><div class="fill" style="width: 42%"></div></div>
<div style="margin-top: 1rem"></div>
<div class="p-row"><span>Bandwidth</span><strong>68%</strong></div>
<div class="p-bar"><div class="fill" style="width: 68%; background: #c084fc"></div></div>
</div>
<style>
.p-list { width: 100%; max-width: 300px; }
.p-row { display: flex; justify-content: space-between; font-size: 0.8rem; margin-bottom: 6px; }
span { color: #64748b; font-weight: 600; }
strong { color: #fff; }
.p-bar { height: 6px; background: rgba(255, 255, 255, 0.05); border-radius: 100px; overflow: hidden; }
.fill { height: 100%; background: #6366f1; border-radius: inherit; }
</style> ---
---
<div class="p-list">
<div class="p-row"><span>Storage</span><strong>42%</strong></div>
<div class="p-bar"><div class="fill" style="width: 42%"></div></div>
<div style="margin-top: 1rem"></div>
<div class="p-row"><span>Bandwidth</span><strong>68%</strong></div>
<div class="p-bar"><div class="fill" style="width: 68%; background: #c084fc"></div></div>
</div>
<style>
.p-list { width: 100%; max-width: 300px; }
.p-row { display: flex; justify-content: space-between; font-size: 0.8rem; margin-bottom: 6px; }
span { color: #64748b; font-weight: 600; }
strong { color: #fff; }
.p-bar { height: 6px; background: rgba(255, 255, 255, 0.05); border-radius: 100px; overflow: hidden; }
.fill { height: 100%; background: #6366f1; border-radius: inherit; }
</style>
Quick Info
- Category
- Data Display
- Filename
MinimalProgressList.astro- Dependencies
- None — pure Astro + CSS
- Tags
- progressdatastat