Sanity Library Reference Docs
    Preparing search index...
    • Beta

      Defines a panel view — renders in the dock.

      Deploying Applications via Blueprints is experimental. This may be subject to breaking changes.

      Parameters

      Returns BlueprintPanelViewConfig

      The panel view declaration

      Configuration for a panel view.

      • Optionaldock?: BlueprintApplicationDock

        Dock placement for the panel view.

        Omitted — the dashboard applies its default placement (the applications group with built-in ordering).

      • name: string

        Unique within the application. Must match ^[a-zA-Z0-9_-]+$.

      • src: string

        The location of the view source code, relative to the application root.

      • surface: "panel"

        The surface the view targets.

      • title: string

        Human-readable title for the view.

      • type: "view"

        Set by the view definers.

      definePanelView({
      name: 'side',
      title: 'Favorites',
      src: './src/panels/main.tsx',
      })