About
A compact API cost KPI with an orange bar sparkline and a daily cost comparison. 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 API Cost to your project and fits it to your theme.
Code
How API Cost is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import { Kpi08 } from "@/components/ui/studioblocks-kpi-08"
export default function Example() {
return (
<div className="w-full max-w-sm">
<Kpi08 />
</div>
)
}
















