# Editor.Toolbar > The top action bar - undo, redo, add image / text / shape, draw, preview, print, download. Composable; drop in only what you need. Source: https://docs.docmosaic.com/docs/primitives/toolbar `Editor.Toolbar` is the default top action bar. Mount it with no children and you get the bundled layout; mount it with explicit children and you get a custom toolbar with the same context wiring. ## Usage ```tsx ``` ## Composition Pass children to override the default layout. Each button is also exported individually so you can compose your own: ```tsx ``` In `readOnly` mode, the mutating buttons (`Undo`, `Redo`, `Add*`, `Draw`) hide themselves automatically; the read-only buttons (`Preview`, `Print`, `Download`) stay live. ## Examples ### Minimal toolbar - just download ```tsx ``` ### Custom toolbar with your own buttons Use the headless hook and dispatch actions directly from your own button. ```tsx import { useEditor } from '@docmosaic/react'; function SaveButton() { const { state } = useEditor(); // `state` is the current Document return ; } ; ``` ## API Reference ## Related - [DownloadButton](/docs/primitives/download-button) - the PDF/PNG export trigger - [GenerationProgress](/docs/primitives/generation-progress) - progress overlay - [FileSizeBadge](/docs/primitives/file-size-badge) - live estimate pill