Dashboard
dashboardA full application screen that works with no props: a workspace switcher and nav that fold into a drawer on narrow containers, search on /, notifications, a theme toggle, KPI stats, a revenue chart with range and period delta, channels and plan mix, a selectable invoice table with row actions and undo, payouts and an activity feed.
import { Dashboard } from "@/components/forme/templates/dashboard/dashboard";
export function DashboardDemo() {
// Full bleed: the preview figure already draws the frame, so the dashboard
// fills it to the edges like an app window — the negative margins cancel the
// figure's padding, and the height is the window the template assumes. Every
// list comes from the template's own defaults; pass props to replace them.
return (
<div data-frame="fill" className="-m-6 h-dvh min-h-[640px] sm:-m-8">
<Dashboard />
</div>
);
}Install
Adds the component, its registry dependencies, and the token stylesheet you import once.
API reference
Read from the source, so it is the API of the file you install. A prop marked * is required.
Dashboard
A full application screen: navigation, search, notifications, the metric row, the revenue chart, channels and plan mix, the invoice table and the activity feed — the parts every product rebuilds, wired to each other and to the tokens.
| Prop | Type | Default | Description |
|---|---|---|---|
brand | string | "Acme Inc" | |
workspaces | readonly string[] | ["Acme Inc", "Acme Labs", "Northwind"] | The other workspaces the switcher offers. The current one is brand. |
user | { name: string; email: string } | { name: "Ada Kim", email: "ada@acme.inc" } | |
kpis | readonly DashboardKpi[] | DEFAULT_KPIS | |
revenue | readonly DashboardRevenueRow[] | DEFAULT_REVENUE | The revenue series, oldest first. The range control takes the last 7 or 30 rows for those ranges and everything you pass for the full range — bring ninety days and all three ranges work. |
channels | readonly DashboardChannel[] | DEFAULT_CHANNELS | |
plans | readonly DashboardPlan[] | DEFAULT_PLANS | Paying accounts per plan, for the plan-mix ring. |
orders | readonly DashboardOrder[] | — | The invoices. Pass onOrdersChange with it to own the list; leave both out and the dashboard keeps its own copy, so "mark as paid" and "refund" work in a preview. |
onOrdersChange | (orders: DashboardOrder[]) => void | — | Called with the whole list after every change, including an undo. |
activity | readonly DashboardActivity[] | DEFAULT_ACTIVITY | |
notifications | readonly DashboardNotification[] | DEFAULT_NOTIFICATIONS | |
payout | DashboardPayout | DEFAULT_PAYOUT | |
usage | { used: number; limit: number } | { used: 4120, limit: 5000 } |
Also takes every prop of <div> attributes.
Related
ProAnalytics Dashboard
A complete analytics screen: collapsible navigation, a metric row with sparklines, a filterable area chart, and a sortable activity table. Everything is a plain component you can take apart.
saas
ProFile Folders
A files workspace: folders with access filters, sort, search and a grid/list view, plus reusable file templates with a scope, type filter and their own sorting — all inside a shared workspace shell.
saas
ProIntegrations Directory
A workspace integrations screen: grouped app directory with connect states, All/Connected/Available filters, search, expandable rows and a request-an-integration form — inside a shared workspace shell with projects, news and a getting-started checklist.
saas