Storage Dashboard

Storage analytics with quota and usage charts

SaaSFile Management

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

Storage Used5 GB of 10 GB

50% used • 5 GB available

Usage by Type

Document2 GB (40%)
Image1.5 GB (30%)
Video1 GB (20%)
Audio512 MB (10%)

StorageDashboard (Dark)

Total Storage

5 GB

of 10 GB quota

Files

1,247

Folders

89

Storage Used5 GB of 10 GB

50% used • 5 GB available

Usage by Type

Document2 GB (40%)
Image1.5 GB (30%)

StorageDashboard - Loading

StorageDashboard - Error

Failed to load storage metrics.

StorageStatCard - Default

Total Storage

7.5GB

StorageStatCard - With Positive Change

Files Uploaded

1247files

+12%vs last month

StorageStatCard - With Negative Change

Storage Used

4.2GB

-8%vs last week

StorageStatCard - Loading

StorageStatCard - Grid Layout

Total Storage

7.5GB

+12%vs last month

Files

1247files

+23%this week

Shared

89items

-5%vs yesterday

Quota Used

75%

0%

QuotaIndicator - Bar Variant

50% used5 GB / 10 GB

QuotaIndicator - Circular Variant

75%

7.5 GB / 10 GB

QuotaIndicator - All Sizes

50%

5 GB / 10 GB

Small
50%

5 GB / 10 GB

Medium
50%

5 GB / 10 GB

Large

QuotaIndicator - Usage Levels (Bar)

Low (30%)
30% used3 GB / 10 GB
Warning (85%)
85% used8.5 GB / 10 GB

Storage running low.

Critical (96%)
96% used9.6 GB / 10 GB

Storage almost full! Consider deleting files.

QuotaIndicator - Custom Thresholds

70% used7 GB / 10 GB

Storage running low.