@sanity/dashboard 3.1.1 → 3.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2022 Sanity.io
3
+ Copyright (c) 2023 Sanity.io
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -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.
File without changes