Componentdata0.71 KB gzipZero dependencies
Budget Progress
Budget spending bar with category breakdown and overrun warning.
Preview
Live Preview
Installation
Tokens guide →Add to your project via CLI (zero dependencies, code you own):
npx bigbullui add budget-progressOr install the full npm package:
npm install bigbulluiUsage
tsx3 lines
import { BudgetProgress } from "@/components/ui/budget-progress"; <BudgetProgress />Source code
budget-progress.tsx + 1 helperZero third-party dependencies (2 local files shown in tabs below).
tsxbudget-progress.tsx50 lines
"use client"; import * as React from "react";import { cn } from "./lib/utils"; export interface BudgetCategory { id: string; label: string; spent: number; limit: number;} export interface BudgetProgressProps extends React.HTMLAttributes<HTMLDivElement> { categories: BudgetCategory[]; currency?: string;} /** Budget spending tracker: categorized with over-budget warning. */Props
Interactive Prop Playground
Tweak parsed AST props below to generate ready-to-paste JSX.
tsx3 lines
import { BudgetProgress } from "@/components/ui/budget-progress"; <BudgetProgress />| Prop | Type | Description |
|---|---|---|
| categories | BudgetCategory[] | Configures categories. (Default: []) |
| currency | string | Configures currency. (Default: "₺") |