# Editor.Preview > Full-document preview dialog. Opens via Editor.PreviewButton; renders every page in a scrollable Radix modal. Source: https://docs.docmosaic.com/docs/primitives/preview `Editor.Preview` is the full-document preview dialog. The viewer scrolls vertically through every page at print fidelity - what you see is what `Editor.DownloadButton` exports. ## Usage ```tsx ``` The dialog mounts portaled at the body level and stays mounted across renders. `Editor.PreviewButton` (inside `Editor.Toolbar`) opens it. ## Composition The dialog is a Radix `Dialog.Root` underneath. It reads its open state from the editor context - `actions.openPreview()` / `actions.closePreview()` are the dispatchers if you want to drive it from your own UI. ```tsx import { useEditor } from '@docmosaic/react'; function PreviewLink() { const { actions } = useEditor(); return Preview; } ``` ## Examples ### Force-open on mount (e.g. shareable preview link) ```tsx function PreviewOnly() { const { actions } = useEditor(); useEffect(() => { actions.openPreview(); }, [actions]); return null; } ``` ## API Reference ## Related - [PreviewButton](/docs/primitives/preview-button) - [DownloadButton](/docs/primitives/download-button)