BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/billingsdk/billing-settings

Billing Settings

billingsdk/billing-settings
FreeBlock

A comprehensive billing settings component with tabs for general, payment methods, invoices, and usage limits

Install it

npx shadcn@latest add https://billingsdk.com/r/billing-settings.json

Source

src/registry/billingsdk/billing-settings.tsxbillingsdk.com/r/billing-settings.json · first 6 KB
1"use client";
2
3import { Button } from "@/components/ui/button";
4import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
5import { Switch } from "@/components/ui/switch";
6import { Badge } from "@/components/ui/badge";
7import {
8 DropdownMenu,
9 DropdownMenuContent,
10 DropdownMenuItem,
11 DropdownMenuTrigger,
12} from "@/components/ui/dropdown-menu";
13import { ChevronDown, CreditCard, Plus } from "lucide-react";
14
15const tabs = [
16 { id: "general", label: "General" },
17 { id: "payment", label: "Payment" },
18 { id: "invoices", label: "Invoices" },
19 { id: "limits", label: "Limits" },
20];
21
22interface CardInfo {
23 id: string;
24 last4: string;
25 brand: string;
26 expiry: string;
27 primary?: boolean;
28}
29
30interface BillingSettingsProps {
31 activeTab: string;
32 onTabChange: (tab: string) => void;
33
34 emailNotifications: boolean;
35 onEmailNotificationsChange: (value: boolean) => void;
36
37 usageAlerts: boolean;
38 onUsageAlertsChange: (value: boolean) => void;
39
40 invoiceReminders: boolean;
41 onInvoiceRemindersChange: (value: boolean) => void;
42
43 cards: CardInfo[];
44 onAddCard: () => void;
45
46 invoiceFormat: "PDF" | "HTML";
47 onInvoiceFormatChange: (format: "PDF" | "HTML") => void;
48 onEditBillingAddress: () => void;
49
50 overageProtection: boolean;
51 onOverageProtectionChange: (value: boolean) => void;
52
53 usageLimitAlerts: boolean;
54 onUsageLimitAlertsChange: (value: boolean) => void;
55 className?: string;
56}
57
58interface SettingItemProps {
59 title: string;
60 description: string;
61 checked: boolean;
62 onCheckedChange: (checked: boolean) => void;
63}
64
65function SettingItem({
66 title,
67 description,
68 checked,
69 onCheckedChange,
70}: SettingItemProps) {
71 const switchId = `switch-${title.toLowerCase().replace(/\s+/g, "-")}`;
72
73 return (
74 <div className="flex items-center justify-between gap-4 py-4">
75 <div className="min-w-0 flex-1 space-y-0.5">
76 <label
77 htmlFor={switchId}
78 className="text-sm leading-none font-medium peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
79 >
80 {title}
81 </label>
82 <p className="text-muted-foreground text-sm">{description}</p>
83 </div>
84 <Switch
85 id={switchId}
86 checked={checked}
87 onCheckedChange={onCheckedChange}
88 className="shrink-0"
89 />
90 </div>
91 );
92}
93
94interface TabNavigationProps {
95 activeTab: string;
96 onTabChange: (tab: string) => void;
97}
98
99function TabNavigation({ activeTab, onTabChange }: TabNavigationProps) {
100 return (
101// … truncated

What it pulls in

npm packages

  • lucide-react
  • sonner

Other registry items

  • button
  • card
  • dialog
  • switch
  • badge
  • dropdown-menu
  • dialog
  • input
  • label

Files it writes

  • src/registry/billingsdk/billing-settings.tsx
  • src/registry/billingsdk/demo/billing-settings-demo.tsx

Facts

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

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 ComponentsallbillingsdkBlocksFreeno deps
Top BannerbannerbillingsdkBlocksFree2 deps · 2 files
Billing Screenbilling-screenbillingsdkBlocksFree2 deps · 2 files
Billing Settings 2billing-settings-2billingsdkBlocksFree1 dep · 2 files
Cancel Subscription Cardcancel-subscription-cardbillingsdkBlocksFree1 dep · 3 files
Cancel Subscription Dialogcancel-subscription-dialogbillingsdkBlocksFree1 dep · 3 files
Detailed Usage Tabledetailed-usage-tablebillingsdkBlocksFreeno deps · 2 files
Hello World Componenthello-worldbillingsdkBlocksFreeno 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