Storage Dashboard
Storage analytics with quota and usage charts
Overview
The analytics domain provides components for visualizing storage usage. StorageDashboard shows an overview with stat cards, quota progress bar, and usage-by-type breakdown. StorageStatCard displays individual metrics with optional trend indicators. QuotaIndicator renders storage quota as a bar or circular progress with configurable warning/critical thresholds.
Usage
import { QuotaIndicator, StorageDashboard, StorageStatCard } from "@leanicon/web-builder-library/saas";
<StorageDashboard
metrics={{
totalUsed: 7.5 * 1024 * 1024 * 1024,
quota: 10 * 1024 * 1024 * 1024,
fileCount: 1247,
folderCount: 89,
usageByType: [
{ category: "document", bytes: 3 * 1024 * 1024 * 1024, percentage: 40 },
{ category: "image", bytes: 2 * 1024 * 1024 * 1024, percentage: 27 },
],
}}
/>
<StorageStatCard title="Total Storage" value="7.5" suffix="GB" />
<QuotaIndicator used={5 * 1024 * 1024 * 1024} quota={10 * 1024 * 1024 * 1024} variant="bar" showLabel />Components
StorageDashboard - Default
Total Storage
5 GB
of 10 GB quota
Files
1,247
Folders
89
50% used • 5 GB available
Usage by Type
StorageDashboard (Dark)
Total Storage
5 GB
of 10 GB quota
Files
1,247
Folders
89
50% used • 5 GB available
Usage by Type
StorageDashboard - Loading
StorageDashboard - Error
Failed to load storage metrics.
StorageStatCard - Default
Total Storage
7.5GB
StorageStatCard - With Positive Change
Files Uploaded
1247files
StorageStatCard - With Negative Change
Storage Used
4.2GB
StorageStatCard - Loading
StorageStatCard - Grid Layout
Total Storage
7.5GB
Files
1247files
Shared
89items
Quota Used
75%
QuotaIndicator - Bar Variant
QuotaIndicator - Circular Variant
7.5 GB / 10 GB
QuotaIndicator - All Sizes
5 GB / 10 GB
5 GB / 10 GB
5 GB / 10 GB
QuotaIndicator - Usage Levels (Bar)
Storage running low.
Storage almost full! Consider deleting files.
QuotaIndicator - Custom Thresholds
Storage running low.