> For AI agents: the complete Sanity documentation index is available at [https://www.sanity.io/docs/llms.txt](https://www.sanity.io/docs/llms.txt).

# Visual editing

Framework quickstarts, a framework-agnostic conceptual series, and task-focused guides for specific features.

Visual editing bridges Sanity Studio and your frontend. Editors see drafts render on the live site or a preview environment, click any element to jump to the right field, and watch content update as they type. It works with any modern frontend stack.

## What you can do

Visual editing streamlines content workflows across three capabilities:

- **Live preview**: see draft content render on your frontend as editors make changes.
- **Click-to-edit**: jump directly from the preview to the field being edited in the Studio.
- **Drag-and-drop page building**: rearrange content sections directly in the preview, with updates reflected in the Studio.

## Framework quickstarts

Most teams should start here. The framework-specific guides give you a working visual editing setup in minutes.

- [Next.js App Router](https://www.sanity.io/docs/visual-editing/visual-editing-with-next-js-app-router)
- [Next.js Pages Router](https://www.sanity.io/docs/visual-editing/visual-editing-with-next-js-pages-router)
- [Remix / React Router](https://www.sanity.io/docs/visual-editing/visual-editing-with-react-router)
- [Astro](https://www.sanity.io/docs/visual-editing/astro-visual-editing)
- [SvelteKit](https://www.sanity.io/docs/visual-editing/visual-editing-with-sveltekit)
- [Nuxt](https://www.sanity.io/docs/visual-editing/visual-editing-with-nuxt)
- [React Native](https://www.sanity.io/docs/visual-editing/visual-editing-with-react-native)

## Build from scratch

If you're using a framework without official support, building a custom integration, or want to understand how visual editing works end-to-end, follow the framework-agnostic series below. All examples use plain TypeScript, standard Web APIs, and minimal libraries.

### Conceptual foundation

- [Visual editing architecture overview](https://www.sanity.io/docs/visual-editing/visual-editing-architecture): seven-layer mental model of how everything fits together.
- [Client setup for visual editing](https://www.sanity.io/docs/visual-editing/visual-editing-client-stega): configure the Sanity client with stega, content source maps, perspectives, and token handling.
- [Implementing draft mode](https://www.sanity.io/docs/visual-editing/implementing-draft-mode): build secure preview endpoints from scratch.
- [Overlays and click-to-edit](https://www.sanity.io/docs/visual-editing/visual-editing-overlays): enable overlays, understand detection methods, and integrate your router.
- [Real-time content updates](https://www.sanity.io/docs/visual-editing/live-preview-content-updates): progressive enhancement with the core loader and Live Content API.
- [Configuring the Presentation Tool](https://www.sanity.io/docs/visual-editing/configuring-the-presentation-tool): set up the Studio plugin that hosts the preview.

### End-to-end example

- [Build a complete visual editing integration](https://www.sanity.io/docs/visual-editing/build-a-visual-editing-integration): step-by-step with Vite and a Node.js HTTP server.

## Related topics

Task-focused guides for specific features and integrations:

- [Using the Presentation Tool](https://www.sanity.io/docs/user-guides/preview-and-page-building): editor-facing guide to the preview experience.
- [Enabling drag and drop](https://www.sanity.io/docs/visual-editing/enabling-drag-and-drop): page building with array reordering.
- [Custom overlay components](https://www.sanity.io/docs/visual-editing/custom-overlay-components): extend the overlay system with plugins.
- [Custom preview header and navigation](https://www.sanity.io/docs/visual-editing/customizing-preview-header-and-navigation): customize the Presentation Tool UI.
- [Content Source Maps specification](https://www.sanity.io/docs/visual-editing/content-source-maps): the JSON format and GROQ compatibility matrix.
- [Presentation Resolver API](https://www.sanity.io/docs/visual-editing/presentation-resolver-api): advanced DocumentLocationResolver reference.
- [Studio edit intent links](https://www.sanity.io/docs/visual-editing/studio-edit-intent-links): construct URLs to open documents in the Studio directly.
- [Vercel protection bypass](https://www.sanity.io/docs/visual-editing/vercel-protection-bypass): integration guide for deployment protection.
- [useOptimistic hook reference](https://www.sanity.io/docs/visual-editing/useoptimistic-reference): React hook for optimistic drag-and-drop UI.



## Related changelog entries

Entries are listed newest first; each link points to the full entry as markdown. Follow one when you need to know what changed, when, or why — for example, to summarize recent updates, explain behavior that differs from older documentation, or check whether a fix has shipped.

- [Sanity Studio v3.91.0: Modify documents when duplicating; Duplicate Releases; and fixes for unpublishing documents in structure form](https://www.sanity.io/docs/changelog/bb30c7eb-fc6b-4422-92d1-86f631500682.md) — June 3, 2025
- [Sanity Studio v3.10.0: Visual editing, improved integration with Next.js, and more](https://www.sanity.io/docs/changelog/5c520895-3779-4058-b2b9-265973de741f.md) — May 4, 2023