JSPM

@sanity/dashboard

0.140.10-alpha.80+e21f54fb1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 12019
  • Score
    100M100P100Q138189F
  • License MIT

Tool for rendering dashboard widgets

Package Exports

  • @sanity/dashboard

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@sanity/dashboard) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Dashboard

Tool which picks up and renders any widgets implementing part:@sanity/dashboard/widget. Install this plugin in your Content Studio to display stats about your project, number of edits last 24 hours, etc.

The Dashboard tool has been designed to be as generic as possible, making few assumptions about its widgets. The Dashboard itself is mostly concerned about the layout of the configured widgets.

How to install a widget

How to create a widget

How to configure the Dashboard

Override part:@sanity/dashboard/config in your Studio to take control of what appears on the dashboard.

A widget’s size behavior can be defined using the layout configuration, e.g.:

export default {
  widgets: [{name: 'project-info', layout: {width: 'medium', height: 'auto'}}]
}