Sanity Library Reference Docs
    Preparing search index...

    Function StudioLayout

    • The Studio Layout component is the root component of the Sanity Studio UI. It renders the navbar, the active tool, and the search modal as well as the error boundary.

      Returns Element

      A Studio Layout element that renders the navbar, the active tool, and the search modal as well as the error boundary

      This component should be used as a child component to the StudioProvider

      <StudioProvider
      basePath={basePath}
      config={config}
      onSchemeChange={onSchemeChange}
      scheme={scheme}
      unstable_history={unstable_history}
      unstable_noAuthBoundary={unstable_noAuthBoundary}
      >
      <StudioLayout />
      </StudioProvider>