@sanity/dashboard
6.0.206.0.21
README.md~
README.mdModified+3−3
Index: package/README.md
===================================================================
--- package/README.md
+++ package/README.md
@@ -24,10 +24,10 @@
In `sanity.config.js` (or .ts), add the dashboard tool to the defineConfig plugins array:
```ts
-import {defineConfig} from 'sanity'
import {dashboardTool} from '@sanity/dashboard'
+import {defineConfig} from 'sanity'
export default defineConfig({
/* ... */
plugins: [dashboardTool({widgets: []})],
})
@@ -40,15 +40,15 @@
Now, add any widgets you might want. The dashboard plugin provides three widgets out-of-the-box:
```ts
-import {defineConfig} from 'sanity'
import {
dashboardTool,
sanityTutorialsWidget,
projectUsersWidget,
projectInfoWidget,
} from '@sanity/dashboard'
+import {defineConfig} from 'sanity'
// configure the dashboard tool with widgets
dashboardTool({
widgets: [sanityTutorialsWidget(), projectInfoWidget(), projectUsersWidget()],
@@ -63,11 +63,11 @@
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:
```ts
-import {defineConfig} from 'sanity'
import {dashboardTool} from '@sanity/dashboard'
import {ActivityIcon} from '@sanity/icons/Activity'
+import {defineConfig} from 'sanity'
dashboardTool({
name: 'stats',
title: 'Statistics',