Skip to content

DashboardConfig

DashboardConfig = object

Defined in: packages/admin/src/types.ts:273

Configuration for the admin dashboard (the admin index page).

When no widgets are configured, the dashboard shows a count for every visible table and recent items from the first table.

const dashboard: DashboardConfig = {
widgets: [
{ type: "count", table: "users", label: "Total Users" },
{ type: "recent", table: "posts", label: "Recent Posts", limit: 10 },
],
};

optional widgets: DashboardWidget[]

Defined in: packages/admin/src/types.ts:275

Dashboard widget definitions. When omitted, the admin auto-generates widgets from the schema.