A spending app built from the six expense blocks on the App Shell. Home puts the month against the budget with today's pace, the insight that matters most and recent activity; then Activity, Budgets, Insights with a cited Ask, Subscriptions, a trip report to approve and Scan a receipt. A sidebar on a desktop, a bottom tab bar with a scan button on a phone.
This page holds the props and the code. See the template, its screens and a live preview.
On this page
Examples
Installation
Installation is part of Pro
Pro components install from a licensed registry. The live preview stays open to everyone.
Props
- layout
"page"|"fill"- Default
"page" - page: the window scrolls and the sidebar sticks. fill: the app fills its parent and the main column scrolls.
- embedded / labelPrefix
boolean / string- Default
false / - - For an app shown inside another page: no second main landmark, and unique navigation labels.
- defaultView
"spend"|"activity"|"budgets"|"insights"|"subscriptions"|"reports"|"scan"- Default
"spend" - The screen it opens on.
- Data
expense-app-data.tsx- TRANSACTIONS, BUDGET, SUBSCRIPTIONS, REPORT, INSIGHTS and the demo read and ask functions. A fictional studio in US dollars with one lunch in dong; replace it with yours.
| Prop | Type | Default | Description |
|---|---|---|---|
| layout | "page" | "fill" | "page" | page: the window scrolls and the sidebar sticks. fill: the app fills its parent and the main column scrolls. |
| embedded / labelPrefix | boolean / string | false / - | For an app shown inside another page: no second main landmark, and unique navigation labels. |
| defaultView | "spend" | "activity" | "budgets" | "insights" | "subscriptions" | "reports" | "scan" | "spend" | The screen it opens on. |
| Data | expense-app-data.tsx | - | TRANSACTIONS, BUDGET, SUBSCRIPTIONS, REPORT, INSIGHTS and the demo read and ask functions. A fictional studio in US dollars with one lunch in dong; replace it with yours. |
When to use
When to use
- A spending app for a person or a small team: the month against the budget, activity, insights with Ask, subscriptions, reports to approve and receipt scanning.
- A phone-first product where a bottom tab bar and sheets matter as much as the desktop sidebar.
When not to use
- A money page for an AI product's runs and credits: use Spend Overview.
- Just the budget: use Category Budget.
Using with AI
Use Copy page for AI above to give your assistant this page, Copy prompt under the install command to have it installed and wired to your data, or connect the Knowns UI MCP server and just ask:
- Add the Knowns UI Expense App to my app and wire it to my own data.
- I need a spending app for a person or a small team: the month against the budget, activity, insights with Ask, subscriptions, reports to approve and receipt scanning. Set that up with the Knowns UI Expense App.
- Which Expense App props do I need for a minimal setup? Show me a short example.
With the server connected, your assistant calls get_component({ name: "template-expense-app" }) and search_docs({ query: "expense app" }). Pro props, full examples and source come back once your license key is in the MCP config.