Arham Khan

Resource Usage

Dashboards

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>
  );
}

Dependencies

More by Arham Khan

View all
  • Radial Menu

    Radial Menu

    535
  • Radial Intro

    Radial Intro

    281
  • Playful Todolist

    Playful Todolist

    174
  • Spring Element

    Spring Element

    138
  • Recent Invoices

    Recent Invoices

  • Developer Workspace Sidebar

    Developer Workspace Sidebar

  • Workspace Sidebar

    Workspace Sidebar

  • Upcoming Renewals

    Upcoming Renewals

More in Dashboards

View all
  • Fernly — Project Management Dashboard with Kanban

    Fernly — Project Management Dashboard with Kanban

    754
  • Analytics Dashboard

    Analytics Dashboard

    82
  • Creator Dashboard

    Creator Dashboard

    216
  • Insights Dashboard

    Insights Dashboard

    44
  • Corbel — Sales Analytics Dashboard

    Corbel — Sales Analytics Dashboard

    458
  • serf dashboard

    serf dashboard

    144
  • Dashboard with Collapsible Sidebar

    Dashboard with Collapsible Sidebar

    2.7K
  • Halden — CRM Dashboard with Sales Pipeline

    Halden — CRM Dashboard with Sales Pipeline

    66