BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/billingsdk/detailed-usage-table

Detailed Usage Table

billingsdk/detailed-usage-table
UnverifiedBlock

A detailed usage table component with resource consumption breakdown

Install it

npx shadcn@latest add https://raw.githubusercontent.com/030201xz/shadcn-registries/main/registries/billingsdk/output/detailed-usage-table.json

Source

registry itemraw.githubusercontent.com/030201xz/shadcn-registries/main/registries/billingsdk/output/detailed-usage-table.json
1"use client";
2
3import {
4 Card,
5 CardContent,
6 CardDescription,
7 CardHeader,
8 CardTitle,
9} from "@/components/ui/card";
10import {
11 Table,
12 TableBody,
13 TableCaption,
14 TableCell,
15 TableHead,
16 TableHeader,
17 TableRow,
18} from "@/components/ui/table";
19import { cn } from "@/lib/utils";
20
21export interface UsageResource {
22 name: string;
23 used: number;
24 limit: number;
25 percentage?: number;
26 unit?: string;
27}
28
29export interface DetailedUsageTableProps {
30 className?: string;
31 title?: string;
32 description?: string;
33 resources: UsageResource[];
34}
35
36export function DetailedUsageTable({
37 className,
38 title = "Detailed Usage",
39 description,
40 resources,
41}: DetailedUsageTableProps) {
42 const formatNumber = (num: number) => {
43 return new Intl.NumberFormat().format(num);
44 };
45
46 const getPercentageBar = (percentage: number) => {
47 let bgColor = "bg-emerald-500";
48 if (percentage >= 90) bgColor = "bg-destructive";
49 else if (percentage >= 75) bgColor = "bg-orange-500";
50
51 return (
52 <div className="flex min-w-[120px] items-center gap-2">
53 <div className="bg-secondary h-2 flex-1 rounded-full">
54 <div
55 className={cn("h-2 rounded-full transition-all", bgColor)}
56 style={{ width: `${Math.max(0, Math.min(percentage, 100))}%` }}
57 />
58 </div>
59 <span className="w-10 text-right text-xs font-medium tabular-nums">
60 {Math.round(percentage)}%
61 </span>
62 </div>
63 );
64 };
65
66 return (
67 <Card className={cn("w-full", className)}>
68 <CardHeader>
69 <CardTitle>{title}</CardTitle>
70 {description && <CardDescription>{description}</CardDescription>}
71 </CardHeader>
72 <CardContent>
73 <div className="overflow-x-auto rounded-md border">
74 <Table>
75 <TableCaption className="sr-only">
76 Detailed usage of resources
77 </TableCaption>
78 <TableHeader>
79 <TableRow>
80 <TableHead className="w-[180px]">Resource</TableHead>
81 <TableHead className="text-right">Used</TableHead>
82 <TableHead className="text-right">Limit</TableHead>
83 <TableHead className="min-w-[160px] text-right">
84 Usage
85 </TableHead>
86 </TableRow>
87 </TableHeader>
88 <TableBody>
89 {resources.length === 0 ? (
90 <TableRow>
91 <TableCell
92 colSpan={4}
93// … truncated

What it pulls in

Other registry items

  • table
  • card
  • badge
  • utils

Facts

Registry
billingsdk
Type
registry:block
Access
Unverified
Files written
0
Licence
the repository states none
In the index
at or before 2026-08-13
Last confirmed
today

Go to the source

billingsdk.com dodopayments/billingsdk on GitHub Raw registry item This item as JSON

More from billingsdk

All 35 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
All ComponentsallbillingsdkBlocksUnverifiedno deps
Top BannerbannerbillingsdkBlocksUnverified2 deps
Billing Screenbilling-screenbillingsdkBlocksUnverified2 deps
Billing Settingsbilling-settingsbillingsdkBlocksUnverified2 deps
Billing Settings 2billing-settings-2billingsdkBlocksUnverified1 dep
Cancel Subscription Cardcancel-subscription-cardbillingsdkBlocksUnverified1 dep
Cancel Subscription Dialogcancel-subscription-dialogbillingsdkBlocksUnverified1 dep
Hello World Componenthello-worldbillingsdkBlocksUnverifiedno deps

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

ToolDrift

What the AI coding tools changed last night

tooldrift.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex