Skip to main content
The toolbar gives your users formatting controls for document editing. You can use the built-in UI or go headless and build your own.

Choose your approach

Built-inHeadless
Setuptoolbar: '#toolbar' — renders a ready-made UIcreateHeadlessToolbar() — you build the UI
CustomizationSwap icons, exclude buttons, reorder groupsFull control — any component library, any layout, any framework
FrameworkRenders its own DOM (works everywhere)React, Vue, Svelte, vanilla JS — your choice
Best forStandard document editing, quick prototypesDesign system integration, embedded editors, custom UX

Quick start

Point toolbar at a container element. SuperDoc renders the UI for you.
new SuperDoc({
  selector: '#editor',
  document: 'contract.docx',
  toolbar: '#toolbar',
});

Learn more

Built-in toolbar

Configuration, custom buttons, responsive behavior

Headless toolbar

API reference, command table, helpers

Framework examples

React + shadcn, React + MUI, Vue + Vuetify, Svelte, vanilla JS