You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15
Original file line number
Diff line number
Diff line change
@@ -70,6 +70,21 @@ Widgets can be configured by passing widget-specific config:
70
70
projectUsersWidget({layout: 'medium'})
71
71
```
72
72
73
+
You can change the name, title and icon of the dashboard tool should you want to - which also allows you to configure multiple dashboards with different configurations:
74
+
75
+
```ts
76
+
import { defineConfig } from"sanity";
77
+
import { dashboardTool } from"@sanity/dashboard";
78
+
import { ActivityIcon } from"@sanity/icons";
79
+
80
+
dashboardTool({
81
+
name: "stats",
82
+
title: "Statistics",
83
+
icon: ActivityIcon,
84
+
widgets: [/* ... */]
85
+
})
86
+
```
87
+
73
88
## How to install a widget
74
89
75
90
Install a Dashboard widget as you would any npm package.
0 commit comments