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.
- 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-dashboardPaste this into your coding agent (Claude Code, Cursor, Codex). It checks your project, sets up the registry, runs the install and verifies it.
Install App dashboard from Knowns UI into this project. Work step by step, show me each change, and ask before you edit files outside this project.
Context: Knowns UI (https://ui.knowns.dev) is a shadcn registry. Items land in the project as source files. Docs: https://ui.knowns.dev/docs/template-app-dashboard
1. Check the project first. Stop and tell me if any of these is missing:
- React 19 and Tailwind CSS v4.
- A components.json at the project root. If there is none, ask me before running `npx knowns-ui@latest init --no-key` (it runs shadcn init when needed, then adds the registries).
2. Run:
```bash
npx knowns-ui@latest add template-app-dashboard
```
It writes these files:
- lib/knowns/run.ts
- lib/knowns/json.tsx
- lib/knowns/status.ts
- lib/knowns/tone.ts
- lib/knowns/types.ts
- lib/knowns/use-abortable.ts
- lib/knowns/utils.ts
- lib/knowns/motion.tsx
- lib/knowns/motion-utils.ts
- components/ui/knowns/use-floating.ts
- lib/knowns/icons/actor-icon.tsx
- lib/knowns/icons/model-icons.tsx
- lib/knowns/icons/tool-icons.tsx
- lib/knowns/icons/model-icons.data.ts
- lib/knowns/icons/tool-icons.data.ts
- lib/knowns/icons/LICENSES.md
- components/ui/knowns/spinner.tsx
- components/ui/knowns/button.tsx
- components/ui/knowns/dialog.tsx
- components/ui/knowns/status-dot.tsx
- components/ui/knowns/tooltip.tsx
- components/ui/knowns/tooltip-utils.ts
- components/ui/knowns/toggle-group.tsx
- components/ui/knowns/agent-fleet/agent-fleet.tsx
- components/ui/knowns/agent-fleet/fleet-utils.ts
- components/ui/knowns/menu.tsx
- components/ui/knowns/breadcrumb.tsx
- lib/knowns/home.ts
- lib/knowns/home-utils.ts
- components/ui/knowns/kbd.tsx
- components/ui/knowns/avatar.tsx
- components/ui/knowns/popover.tsx
- components/ui/knowns/sheet.tsx
- components/ui/knowns/blocks/sidebar/sidebar.tsx
- components/ui/knowns/blocks/sidebar/sidebar-utils.ts
- components/ui/knowns/blocks/app-shell/app-shell.tsx
- components/ui/knowns/badge.tsx
- components/ui/knowns/progress.tsx
- components/ui/knowns/user-menu.tsx
- components/ui/knowns/blocks/templates/app-dashboard.tsx
and installs these npm packages: clsx@^2.1.1, tailwind-merge@^3.7.0, class-variance-authority@^0.7.1.
3. While it runs:
- It also adds a few @keyframes (all named kn-*) to the global CSS file (globals.css or the file components.json points at). Let it: they only add animations.
- If it asks to overwrite files under lib/knowns/: these are shared by every Knowns UI item. List them, say whether I changed them (check git), and ask me before you answer.
- If it asks to overwrite any other file, show me the diff and ask me.
4. Verify:
- Every file in the list above exists.
- The project type-checks (for example `npx tsc --noEmit`) and the dev build has no new errors.
5. Use it: follow the examples and props on https://ui.knowns.dev/docs/template-app-dashboard, and ask me if anything about my data is unclear.
If the Knowns UI MCP server is connected (https://ui.knowns.dev/docs/ai-and-mcp), use get_component({ name: "template-app-dashboard" }) or search_docs for details.
Finish with a short summary: the files you added or changed, the packages you installed, and anything I still need to do.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- Default
false / - - 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.
| Prop | Type | Default | Description |
|---|---|---|---|
| layout | "page" | "fill" | "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 | false / - | 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
- 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.
- 02Greets the user in a page header with a live badge, a one-line status of the agents and Invite and New run buttons.
- 03Shows a three-figure stat band, then an AgentFleet of agents that need you, then a list of recent activity.
- 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.
- 05Scrolls the window with layout="page" or fills a box with layout="fill", and `embedded` drops its own landmarks for use inside another page.
- 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
| State | What moves | Timing |
|---|---|---|
| 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
- App shellInstalled with it. The whole template is one shell with the dashboard as its page.
- Agent fleetInstalled with it. It draws the agents that are working, waiting or stopped.
- ProgressInstalled with it. The runs-this-month meter in the sidebar footer is a small progress.
- User menuInstalled with it. The account menu in the topbar is one, with a sign out.
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
- A page with one run in depth: use Agent Ops Dashboard.
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" }).