Skip to content

App Dashboard

A signed-in dashboard on the App Shell: workspaces, sidebar, topbar with search and notifications, page header, stat band, a fleet of agents that need you, recent activity and a usage card.

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

On this page
Used for
  • Signed-in home screen
  • Agent fleet overview
  • Dashboard starter
  • Usage and plan card
  • Workspace switcher demo

Examples

Installation

npx knowns-ui@latest add template-app-dashboard
For Claude Code, Cursor or Codex: installs it and wires the props to your own data.

Props

layout
"page" | "fill"
Default"page"
page: the window scrolls, the sidebar and topbar stick. fill: the dashboard fills its parent and the main column scrolls.
embedded / labelPrefix
boolean / string
Defaultfalse / -
For a dashboard shown inside another page: no second main or aside, and unique navigation labels.
Data
arrays in the file
NAV, WORKSPACES, AGENTS, STATS and ACTIVITY at the top of the file. Replace them with your own.
Page header
plain header
A title, a status badge, a line and two buttons. Page Header (Pro) is a drop-in upgrade: breadcrumbs, tabs, owner, progress and an overflow menu.

What it handles

  1. 01Builds the home screen of a product on the App Shell: workspace switcher, nav, topbar with search, a bell and a user menu, and a usage card in the sidebar footer.
  2. 02Greets the user in a page header with a live badge, a one-line status of the agents and Invite and New run buttons.
  3. 03Shows a three-figure stat band, then an AgentFleet of agents that need you, then a list of recent activity.
  4. 04Keeps the data as plain arrays at the top of the file, so you replace the nav, the workspaces, the agents and the activity with your own.
  5. 05Scrolls the window with layout="page" or fills a box with layout="fill", and `embedded` drops its own landmarks for use inside another page.
  6. 06Keeps demo links on the page by cancelling link navigation and moving the active row and the breadcrumb on pick, with Cmd or Ctrl+B turned off.

States

First render
Nothing. The dashboard paints as it is
none
Pick a nav row
The active row and the breadcrumb change at once
none
Collapse the sidebar
The width switches at once and labels fade out
120ms, ease out
Reduced motion
Sidebar labels no longer fade
0ms

Works with

When to use

When to use

  • A first screen for a signed-in product: sidebar, topbar, header, stats, a list of agents and recent activity.
  • A shape to build on when your data is a list of runs or agents that sometimes need a person.

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 App Dashboard to my app and wire it to my own data.
  • I need a first screen for a signed-in product: sidebar, topbar, header, stats, a list of agents and recent activity. Set that up with the Knowns UI App Dashboard.
  • Which App Dashboard props do I need for a minimal setup? Show me a short example.

With the server connected, your assistant calls get_component({ name: "template-app-dashboard" }) and search_docs({ query: "app dashboard" }).

Need help?

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