Storage Clean, animated React component
A storage panel you can clean. Press a recommendation and that slice of the bar crumbles into particles that stream into the trash can; the bar springs shut, the number rolls down, and Undo pours the particles back. Canvas particles synced to a spring-driven bar.
- Pro
- Dashboards
- Spring
Clicks when you press a recommendation, crumbles as the bar breaks into grains, bloops as they drop into the can, chimes when the space is freed, and pours with a soft ping when you undo. Sound is off on this site until you switch it on.
Play with it
Move the controls and watch it change. Copy code gives you a snippet with only the props you changed.
Storage
38.2 of 50 GB used- Apps14.6 GB
- Photos9.8 GB
- iOS6.4 GB
- System Data3.3 GB
- Cache4.1 GB
Recommendations
Hover the bar to inspect. Press a recommendation to free space.
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| autoplay | boolean | false | Plays itself with a ghost pointer until the visitor touches it. Off by default, so a copied component reacts only to the visitor. Never runs under reduced motion. |
| className | string | — | Extra classes for the outer card. |
| enableSound | boolean | true | Plays interface sounds on interaction. They follow the sound switch (setSoundsEnabled, on by default) and stay silent on hover. Autoplay makes the same sounds once the visitor has used the page. Pass false to silence this component. |
Storage Clean questions
Does it make sound, and how do I turn it off?
Clicks when you press a recommendation, crumbles as the bar breaks into grains, bloops as they drop into the can, chimes when the space is freed, and pours with a soft ping when you undo. Sounds are synthesised with the Web Audio API, so there are no audio files, and they only play after a click or key press. Pass `enableSound={false}` to silence this component, or call `setSoundsEnabled(false)` from `@/lib/ui-sounds` to switch every sound off at once. The CLI installs `@/lib/ui-sounds` with the component.