Skip to content
Back

Storage meterPro

Disk use as a capacity bar of dots, one colour block per category, over a category grid; point or click for details, Rescan, and clear caches or the Trash from the hint.

oxyn add storage-meter
288.2 GBof 512 GB used

223.8 GB available

Caches hold 21.8 GB you can win back.

The code is part of Oxyn Pro

The preview stays free for everyone. Pro opens the code of every Pro component, screen, agent-app template, block and kit, plus the Pro CLI.

Get Pro

Rendered from Rust at build time · goes live when visible

When to use

  • Show what fills a disk and offer the one quick win, in a card small enough for a menu-bar panel.

When not to use

Installation

Storage meter is part of Oxyn Pro; the preview is free. Pro items install with the oxyn CLI once your licence is signed in; until then Pro members copy the code from this page.

Terminal
oxyn add storage-meter

Usage

Dioxus · rust
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Examples

Default

A bar of dots, one colour block per category, over a grid; the hint offers the biggest thing you can clear.

288.2 GBof 512 GB used

223.8 GB available

Caches hold 21.8 GB you can win back.

Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Caches picked

Caches picked: the other dots dim and the hint offers to clear them.

288.2 GBof 512 GB used

223.8 GB available

Caches · 22.9 GB · Rebuilt by apps on demand

Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Small disk

A 256 GB disk in a finer bar: the same files fill it past half.

288.2 GBof 256 GB used

0 MB available

Caches hold 21.8 GB you can win back.

Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Read only

No Rescan or Clear: a meter to read.

288.2 GBof 512 GB used

223.8 GB available

Photos · 39.5 GB · 11,204 photos

Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

API reference

StorageMeter

PropTypeDefaultDescription
catsOption<Vec<StoreCat>>Default::default()Categories (the demo disk when `None`).
capf64512.0Capacity in GB.
colsusize48Dot columns in the bar.
rowsusize4Dot rows in the bar.
default_pickOption<usize>Default::default()Starts with this category picked.
actionsbooltrueRescan and clear actions.
on_clearEventHandler<(String, f64)>—A category was cleared: (key, GB freed).

Read from the Rust signature and doc comments.

Keyboard interactions

KeyAction
TabRescan, each category, the hint's action
EnterorSpace on a categoryKeeps its detail in the hint

Accessibility

  • The dot bar is an image labelled with used and total; each category is a button whose label and size are text.
  • The hint is a polite live region: scanning, clearing and what was freed are all said.

Responsive behaviour

  • 420 px card; the grid drops to two columns under 480 px.
Edge cases (spec)

420 px card; two grid columns under 480 px.

Notes for AI

  • Import StorageMeter from oxyn_dioxus and include STATUS_INDICATOR_CSS plus the token stylesheet once.
  • A GPUI version exists: StorageMeterEl in oxyn_gpui.
  • Keep its states and timings as they ship; restyle it through the CSS variables rather than by hand.

Guides

Oxyn · 74 free components · 264 Pro components · 96 screens · 20 blocks · Dioxus and GPUI