Dashboard beta

Customize your app's dock item

Choose where your app appears, and set its icon and visibility.

The dock is the vertical rail on the left edge of the Dashboard. Your app gets a dock item for its window view, which entry creates, and one for each panel view. Studios don't set entry in defineApplication, but they still get a dock item.

Choose a group and order

The dock.group property sets the area of the dock the item appears in.

  • system: Under the organization name, at the top of the dock.
  • applications: The main list in the middle of the dock. This is the default value if none is provided.

dock.order sorts items within a group in ascending order. Items without an order sort as 100.

import {defineApplication, defineCliConfig} from 'sanity/cli'

export default defineCliConfig({
  app: defineApplication({
    organizationId: 'your-organization-id',
    slug: 'content-app',
    title: 'Content app',
    icon: './icon.png',
    entry: './src/App.tsx',
    dock: {group: 'applications', order: 10},
  }),
})

In the applications group, a deployed app's window only appears for users who have pinned it, and pinned items follow each user's pin order. Panels and apps running under sanity dev always appear.

Place a view separately

Window views inherit the app's dock setting field by field, and can override both group and order. Panel views always appear at the bottom of the dock, whatever group is set, and accept only dock.order, which sorts them among the panels:

import {defineApplication, defineCliConfig, definePanelView} from 'sanity/cli'

export default defineCliConfig({
  app: defineApplication({
    organizationId: 'your-organization-id',
    slug: 'content-app',
    title: 'Content app',
    entry: './src/App.tsx',
    dock: {group: 'applications', order: 10},
    views: [
      definePanelView({
        name: 'activity',
        title: 'Activity',
        src: './src/activity.tsx',
        dock: {order: 20},
      }),
    ],
  }),
})

Here the app's window stays in applications with order 10, and the Activity panel appears at the bottom of the dock, sorted among the panels with order 20.

Add an icon

icon is a path to an image file, relative to the project root. Use a PNG, JPEG, GIF, WebP, SVG, BMP, TIFF, HEIF or AVIF file of at most 5 MB. Every dock item for the app uses this icon. Without one, the dock shows the app's initials.

sanity deploy uploads the image, and the Dashboard loads it from cdn.sanity.io. A deploy without icon removes the app's icon. Under sanity dev, the dock loads the icon from your local dev server.

The Dashboard shows every icon as an image, so an SVG that uses currentColor doesn't change color with the Dashboard theme.

The CLI stops before deploying when it can't use the file, with one of these errors:

  • App icon "<path>" is outside the project directory. Move the image into the project and update `app.icon` in sanity.cli.ts.
  • Can't use app icon "<path>": "<file>" isn't a supported image type. Use a PNG, JPEG, GIF, WebP, SVG, BMP, TIFF, HEIF or AVIF file.
  • Can't use app icon "<path>": "<file>" is larger than 5 MB, the upload limit. Use a smaller image.
  • Can't use app icon "<path>": Couldn't find "<file>". Check the path and try again.

If Sanity rejects the image after the deployment goes live, the app keeps its previous icon and the CLI shows the reason:

  • The app icon was rejected: <reason>. The deployment is live with the application's previous icon. Change `app.icon` in sanity.cli.ts and deploy again.

Hide the app from the dock

Set visibility to control whether the Dashboard lists the app:

  • default: The app and its panels appear in the dock and app lists.
  • unlisted: The app and its panels don't appear in the dock or app lists. The app still opens from its URL.
  • disabled: The Dashboard treats the app as if it doesn't exist.

Under sanity dev, the Dashboard ignores visibility and always lists your local app.

Next steps

Was this page helpful?

Sanity logosanity.ioAll Systems Operational© Sanity 2026
Change site theme