SunUI
Founding$79 lifetime updates till Jan 11Claim a seat
ProShowcaseHover

Storage Meter

A storage usage card whose bar is a grid of lit pixels, one colored block per category.

When to use it

  • Storage or quota pages in a cloud drive, photo backup, file hosting or SaaS plan screen, where people need to see what is using their space before they upgrade or clean up
  • Device or app cleanup flows: show what can be cleared, why it is safe, and celebrate the space it frees
  • An upgrade nudge that earns its place: show the plan filling up by category, then offer the bigger plan next to the clear button

Watch out

  • Values share the unit of capacity (GB by default); pass formatValue for TB, MB or a locale format
  • Keep to about nine categories; more makes the blocks too thin to point at
  • onClear should do the real deletion; return a Promise and the block waits for it, and restores itself if it rejects
  • Pass categories through useMemo: a new array resets the meter to the values you pass

Let your agent add it

One copy holds the install command, when to use it, the props and the design rules. Paste it into Claude Code, Cursor or Codex.

This is a Pro block

One license unlocks every Pro block, now and in the future.

One-time $129 with a year of updates, or $19 a month. Use it in unlimited personal and client projects; installed blocks stay yours.

See pricing

Install with your license

  1. 1. Add the SunUI Pro registry to components.json.
    components.json
    {
      "registries": {
        "@sunui-pro": {
          "url": "https://sunui.synvize.com/r/pro/{name}.json",
          "headers": {
            "Authorization": "Bearer ${SUNUI_LICENSE_KEY}"
          }
        }
      }
    }
  2. 2. Put your license key in .env.local.
    $ SUNUI_LICENSE_KEY=your-license-key
  3. 3. Install the block.
    $ npx shadcn@latest add @sunui-pro/storage-meter
Storage Meter, React Component | SunUI