Skip to content

Spend Overview

A money page for an AI product on the App Shell: a sidebar with run counts, three KPI cards (credits as a dot matrix, tokens, spend as a segmented bar), tabs with a team filter and a period switch, and a board of running jobs, things to review, budget goals and invoices.

This page holds the props and the code. See the template, its screens and a live preview.

On this page
Used for
  • AI spend and usage page
  • Credits and budget dashboard
  • Cost board for teams
  • Billing overview
  • Finance view of an AI product

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 and topbar stick. fill: the page fills its parent and the main column scrolls.
embedded
boolean
Defaultfalse
For a page shown inside another page: no second main or aside landmark.
labelPrefix
string
Prefixes the shell's landmark names so several previews on one page stay unique.
Data
arrays in the file
NAV, BURN_14, TOKENS_14 and CARDS at the top of the file. A fictional workspace in US dollars; replace it with yours.

What it handles

  1. 01Lays out a whole money page on the App Shell: a sidebar with run counts, a page header with Export, Share and Add budget, three KPI cards, tabs and a four-column board.
  2. 02Shows credits left as dither bars, tokens as small bars with their change against last month, and spend as one segmented bar split into model calls, tools and storage.
  3. 03Keeps the work in four columns: running jobs, things that need review, budget goals with progress toward a cap, and invoices that are paid, due or overdue.
  4. 04Filters the board by team and switches the credits chart between 7 and 14 days; the tabs show the columns that belong to each view, and Alerts gathers the cards that need attention.
  5. 05Lets you drag cards between columns, add one from a dashed row at the bottom, and move cards with the keyboard.
  6. 06Keeps every number and name as plain arrays at the top of the file for a fictional workspace, so you swap in your own data.

States

First render
Nothing moves; the dither bars ease in with the chart
none
Team filter
Cards of other teams leave the board and the tab counts follow
none
Reduced motion
The numbers and bars show their final values at once
none

Works with

When to use

When to use

  • A money page for a product that runs AI: credits left, tokens, spend against a budget, and who is over their cap.
  • A board that puts running jobs, alerts, budget goals and invoices side by side for a small team.

When not to use

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 Spend Overview to my app and wire it to my own data.
  • I need a money page for a product that runs AI: credits left, tokens, spend against a budget, and who is over their cap. Set that up with the Knowns UI Spend Overview.
  • Which Spend Overview props do I need for a minimal setup? Show me a short example.

With the server connected, your assistant calls get_component({ name: "template-spend-overview" }) and search_docs({ query: "spend overview" }). Pro props, full examples and source come back once your license key is in the MCP config.

Need help?

Stuck on Spend Overview, or found something off? We read every message.