Storage Meter
- from @localmode
- by LocalMode
Shows origin/IndexedDB storage usage against quota as a meter, with a warning state past a configurable threshold and a graceful unavailable state (estimates are approximate and blocked in Safari private mode). Bind to useStorageQuota (default) or pass an explicit quota. Complements ContextUsageMeter (the token-budget gauge).
Install
New to shadcn? Set up your project
If your project already has a shadcn components.json, skip initialization. Otherwise, run this once from your project root.
pnpm dlx shadcn@latest initpnpm dlx shadcn@latest add @localmode/ui/local-first/storage-meterLive preview
No live preview has been built for this component yet.
Registry dependencies3
- @localmode/ui/lib/utils
- @localmode/ui/lib/browser-utils
- @localmode/ui/lib/use-environment
