Expense trackerPro
Spending by category, budget bars that warn, quick add and recent expenses.
What's inside
- Spending donut
- Budget bars with warnings
- Quick add
- Recent expenses
When to use
- Personal finance, team spend and budgeting tools.
When not to use
- Accounting ledgers: use a data table.
Installation
Usage
Import it from @/components/blocks/expense-tracker after installing. It ships with sample data, so it renders straight away; swap in your own data when you're ready.
import { ExpenseTracker } from "@/components/blocks/expense-tracker";
export default function Page() {
return (
<main className="mx-auto max-w-6xl p-6">
<ExpenseTracker />
</main>
);
}API reference
ExpenseTracker
Monthly spending with a category donut, budget bars that warn near the limit, an AI tip, quick add and recent expenses. Also the default export. No props: sample data sits at the top of the file, ready to swap for your own.
No props.
Keyboard interactions
| Keys | Action |
|---|---|
| Tab | Move through quick add |
| ←or→ | Pick a category |
| Enter | Add the expense |
Accessibility
- Budget bars are labelled progressbars; amounts are text; categories are a labelled radio group.
Motion
- Budget bars fill with a stagger; new expenses slide in; the donut highlights a category when you hover its bar.
Responsive behavior
- Two columns from 1024px.
Performance
- Sample data is plain arrays at the top of the file. Replace them with your API data and keep the shapes.
Notes for AI
- Generate the tip from real month-to-date data.
This page as Markdown, for assistants and coding agents:
/blocks/expense-tracker/markdownThe full library index for assistants is at /llms.txt.
Lode222 doc pagesllms.txt