Componentdata0.71 KB gzipZero dependencies

Budget Progress

Budget spending bar with category breakdown and overrun warning.

Preview

Live Preview
Open ↗

Installation

Tokens guide →

Add to your project via CLI (zero dependencies, code you own):

npx bigbullui add budget-progress

Or install the full npm package:

npm install bigbullui

Usage

tsx3 lines
import { BudgetProgress } from "@/components/ui/budget-progress"; <BudgetProgress />

Source code

budget-progress.tsx + 1 helper

Zero 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 />
PropTypeDescription
categoriesBudgetCategory[]Configures categories. (Default: [])
currencystringConfigures currency. (Default: "₺")