A prepaid balance with burn rate, run-out date, top-ups, auto-recharge and an exportable log.
Import it and pass your content. The props that matter most are listed next.
import { CreditsWallet, type CreditsActivity, type CreditsRange } from "@/components/ui/notchset/blocks/credits-wallet";
export function Credits({ wallet }: { wallet: { balance: number; burn: number; today: string; ranges: CreditsRange[]; activity: CreditsActivity[] } }) {
return (
<CreditsWallet
account="Acme Labs"
balance={wallet.balance}
burnPerDay={wallet.burn}
today={wallet.today}
ranges={wallet.ranges}
amounts={[500, 1000, 2500]}
paymentMethod="VISA •• 4242"
onTopUp={(amount) => fetch("/api/credits/top-up", { method: "POST", body: JSON.stringify({ amount }) }).then((r) => {
if (!r.ok) throw new Error("charge failed");
})}
activity={wallet.activity}
/>
);
}balance / burnPerDay / today–
number / number / YYYY-MM-DDThe run-out date counts from today at the burn rate; under warnDays (45) it turns signal.
ranges–
{ label, points, from, to, projectDays }[]Chart ranges; points are past balances ending today.
amounts / paymentMethod / onTopUp–
number[] / string / (amount) => PromiseResolve once the money is in: the balance rolls up and a row slides in.
autoRecharge / onAutoRechargeChange–
{ enabled, threshold, amount, thresholds } / (config) => voidAdds AUTO-RECHARGE with a switch and thresholds.
spendByAgent–
{ name, amount }[]Adds BY AGENT with bars that grow in.
activity / csvName–
{ id, title, detail, date, amount }[] / stringNegative amounts are spend; EXPORT CSV downloads date, item, detail and amount.
CreditsWalletdata-slot="credits-wallet"
Balance, chart, panels and activity.
components/ui/notchset/blocks/credits-wallet.tsx
This component is included with Pro.
Try the live preview above. Get Pro to install the source.
pnpm dlx shadcn@latest add @beautiful-ui-pro/credits-walletNeeds your registry key. Your components.json style picks the Base UI or Radix build: radix-*, new-york and default get Radix, base-* gets Base UI.
The CLI adds the styles to the CSS file named in components.json (tailwind.css). Check that it points at your global stylesheet, that the project uses Tailwind CSS v4, and that the file is imported in your root layout. Installed by hand: paste styles.css into that file.
Give your coding assistant the Markdown guide instead of screenshots.
https://beautiful-ui.dev/api/mcp (setup)v1.0.0 · 2026-10-04
First release
Pro is in early access.