Skip to content

Invoices

The invoices ledger of an AI workspace: status tabs with counts, four money stats with sparklines, and a filterable table of every invoice, days late in red and due soon in amber, with a Calculate footer for sum, average and count per column.

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

On this page
Used for
  • Invoices ledger
  • Late payment review
  • Accounts receivable
  • Month end totals

Examples

Installation

Installation is part of Pro

Pro components install from a licensed registry. The live preview stays open to everyone.

Props

defaultTab
"all" | "draft" | "sent" | "overdue" | "paid" | "upcoming"
Default"all"
The status tab.
onAction
(id, invoices?) => void
Export gets the rows of the tab; New invoice.
installed
ModuleId[]
Defaultthis module
Modules whose screen you installed. They are links in the sidebar; the rest are dimmed with a dashed mark.
hrefs
Partial<Record<ModuleId, string>>
Default"#/<id>"
The URL of each installed module.
onNavigate
(id: ModuleId) => void
A sidebar row was picked. With it, hash links stay in the page (the bundle switches screens this way).
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.
className
string
On the outer box, for example a height with layout fill.
Data
ai-workspace-data
Fernhill Supply Co., a made-up company: people, four agents, customers, contracts, leads, invoices and workspaces, dated to November 21, 2026. Every template reads it, so installed screens agree. Replace it with your own queries.

Accessibility

  • The sidebar is the App Shell's: a navigation landmark with groups. A module that is not installed is a disabled row, so it is announced but cannot be followed.
  • Quick chat in the topbar opens a dialog sheet named after the agent, with the screen's context as its description. Focus moves into it and returns to the button on close.
  • The Calculate footer is a row of menus, one per column, each named by its column; the value is read with its aggregate.
  • Days late are words, not only red.

What it handles

  1. 01Filters by status with tabs that count the whole ledger: drafts, sent, overdue, paid and upcoming.
  2. 02Shows what is outstanding, overdue with the oldest, collected this month with the average days to pay, and the next 30 days.
  3. 03Lists every invoice with the customer, status, amount, issue and due dates, contract, paid date and method.
  4. 04Writes days late in red, darker past 60, and due soon in amber.
  5. 05Ends the table with a Calculate footer: each column picks sum, average, minimum, maximum, count or unique over the filtered rows.
  6. 06Passes the rows of the tab to onAction for Export.

States

First render
All invoices, newest first; Amount totals itself
none
Tab or filter
The rows and the footer follow
none
Pick an aggregate
The footer cell shows it with its name
none

Works with

When to use

When to use

  • Every invoice of a small company with who is late and totals per column.
  • A finance screen where the agent chases late invoices for you.

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 Invoices to my app and wire it to my own data.
  • I need every invoice of a small company with who is late and totals per column. Set that up with the Knowns UI Invoices.
  • Which Invoices props do I need for a minimal setup? Show me a short example.

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

Need help?

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