Quick start
Configuration
Container element for toolbar
Layout regions for button placement
Custom button arrangement by group
Button names to exclude from toolbar
Custom SVG icons for buttons. See Icon Customization.
Custom tooltips and labels
Available font options in font dropdown. See Font Configuration.
Auto-hide buttons on small screens
Size relative to container instead of window
Custom button definitions. See Custom Buttons.
Available buttons
Use button names withexcludeItems, groups, and icons configuration.
Text formatting
Toggle bold (
Ctrl+B)Toggle italic (
Ctrl+I)Toggle underline (
Ctrl+U)Toggle strikethrough
Clear all formatting
Format painter — copy formatting from selection
Font controls
Font family selector
Font size selector (8–96pt)
Text color picker
Background highlight color picker
Paragraph
Text alignment (left, center, right, justify)
Toggle bullet list
Toggle numbered list
Decrease indent
Increase indent
Line height selector (1, 1.15, 1.5, 2, 2.5, 3)
Quick paragraph styles (Normal, Heading 1, etc.)
Insert
Insert or edit link
Upload and insert image
Insert table via grid selector
Table editing actions (add/delete rows/columns, merge/split cells, etc.)
Tools
Undo last action
Redo last action
Search in document
Zoom level (50%–200%)
Toggle document ruler
Switch between editing/viewing/suggesting modes
Track changes
Accept tracked change at current selection
Reject tracked change at current selection
Custom buttons
Basic button
'button' or 'dropdown'Unique button identifier
Hover text
SVG icon string
Layout group:
'left', 'center', or 'right'Command name or handler function receiving
{ item, argument, option }Dropdown button
Dropdown items, each with
label (display text), key (value), and optional iconShow dropdown arrow
Toggle button
Initial active state
Icon when active
Icon customization
Font configuration
SuperDoc does not load fonts automatically. Custom fonts from imported DOCX files will display in the toolbar, but won’t be selectable unless you load them in your application (via CSS
@font-face, Google Fonts, etc.) and add them to the fonts array.Responsive behavior
The toolbar adapts at these widths:| Breakpoint | Width | Behavior |
|---|---|---|
| XL | 1410px+ | All buttons visible |
| LG | 1280px+ | Hides styles, format painter |
| MD | 1024px+ | Hides separators |
| SM | 768px+ | Hides zoom, font, redo |
| XS | Under 768px | Shows overflow menu |
responsiveToContainer: true to size based on the toolbar container instead of the window.
Role-based controls
The toolbar automatically adapts based on the user’s role:| Role | Available Controls |
|---|---|
viewer | Zoom, search, print, export only |
suggester | Track changes enabled, formatting available |
editor | Full access to all controls |

