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

      Defines a window view — the navigable, full-page view of an application. An application may declare at most one window view.

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

      Parameters

      Returns BlueprintWindowViewConfig

      The window view declaration

      Configuration for a window view.

      • Optionaldock?: BlueprintApplicationDock

        Dock placement for the window 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: "window"

        The surface the view targets.

      • title: string

        Human-readable title for the view.

      • type: "view"

        Set by the view definers.

      defineWindowView({
      name: 'main',
      title: 'Design Retro',
      src: './src/windows/main.tsx',
      })
      defineWindowView({
      name: 'main',
      title: 'Design Retro',
      src: './src/windows/main.tsx',
      dock: {group: 'applications', order: 10},
      })