About
A resource usage card with semicircular capacity gauges for CPU, memory, and storage. 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 Resource Usage to your project and fits it to your theme.
Code
How Resource Usage is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
"use client"
import { Chart04, type ResourceUsage } from "@/components/ui/studioblocks-chart-04"
const defaultItems: ResourceUsage[] = [
{ label: "CPU", used: 3.36, capacity: 8, unit: "vCPU" },
{ label: "Memory", used: 10.9, capacity: 16, unit: "GB" },
{ label: "Storage", used: 405, capacity: 500, unit: "GB" },
];
export default function Example() {
return (
<div className="w-full max-w-2xl">
<Chart04 items={defaultItems} />
</div>
);
}
















