About
A horizontal storage card with a segmented usage bar, an inline category legend, and available space labeled inside the bar. A Studio Blocks block (arhamkhnz/studio-blocks, MIT) built on base-ui shadcn primitives.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Storage Breakdown to your project and fits it to your theme.
Code
How Storage Breakdown is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import { Chart08, type StorageUsage } from "@/components/ui/studioblocks-chart-08"
const data: StorageUsage = {
capacity: 1000,
categories: [
{ label: "Documents", used: 248.6 },
{ label: "Applications", used: 126.4 },
{ label: "Photos", used: 96.8 },
{ label: "Other Users & Shared", used: 42.5 },
{ label: "macOS", used: 24.7 },
{ label: "System Data", used: 145 },
],
};
export default function Example() {
return (
<div className="w-full max-w-2xl">
<Chart08 data={data} />
</div>
);
}
















