Footer Component
TheFooter component is a customizable area at the bottom of the Excalidraw editor. By default, it contains zoom controls, undo/redo actions, and a help button. You can extend it with custom content through the FooterCenter tunnel.
Basic Usage
Footer Anatomy
The default footer is divided into three sections:Left Section
Contains:- Zoom Actions: Zoom in, zoom out, reset zoom, fit to content
- Undo/Redo Actions: Undo and redo buttons (hidden in view mode)
Center Section
This is where you can add custom content using theFooter component:
Right Section
Contains:- Help Button: Opens the keyboard shortcuts dialog
- Welcome Screen Hint: (shown when welcome screen is active)
Default Actions
The footer includes these built-in actions:Zoom Actions
- Zoom In - Increases canvas zoom level
- Zoom Out - Decreases canvas zoom level
- Reset Zoom - Resets zoom to 100%
- Zoom to Fit - Fits all content in viewport
Cmd/Ctrl + +- Zoom inCmd/Ctrl + -- Zoom outCmd/Ctrl + 0- Reset zoomCmd/Ctrl + 1- Zoom to fit
Undo/Redo Actions
- Undo - Reverts the last action
- Redo - Reapplies an undone action
Cmd/Ctrl + Z- UndoCmd/Ctrl + Shift + Z- Redo
Undo/Redo actions are automatically hidden when
viewModeEnabled is true.Help Button
Opens a dialog showing all available keyboard shortcuts and actions.- Keyboard shortcut:
? - Always visible unless explicitly hidden via CSS
Customization Examples
Zen Mode Behavior
When Zen Mode is enabled (zenModeEnabled={true}), the footer (and other UI elements) are hidden to provide a distraction-free experience. There’s a special exit button that appears to leave Zen Mode.
The footer animates out with CSS transitions when entering Zen Mode:
View Mode Behavior
When View Mode is enabled (viewModeEnabled={true}):
- Undo/Redo actions are hidden (no editing allowed)
- Zoom controls remain visible
- Custom footer content is still displayed
- Help button remains visible
Styling
The Footer uses these CSS classes that you can target:Accessibility
The footer is marked withrole="contentinfo" for screen reader accessibility:
- Descriptive
aria-labelortitleattributes - Keyboard navigation support
- Sufficient color contrast
Best Practices
- Keep it concise - Footer space is limited, avoid cluttering it
- Use icons - Icons help save space and improve scannability
- Show status - Use the footer for non-intrusive status updates
- Quick actions only - Reserve footer for frequently used actions
- Responsive design - Ensure footer adapts to mobile screens
- Don’t hide defaults - Built-in zoom and undo/redo are essential
Complete Example
See Also
- Excalidraw - Main component documentation
- Button - Button components for footer actions
- MainMenu - Main menu customization