Skip to main content

Footer Component

The Footer 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

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)
These actions are built-in and rendered automatically.

Center Section

This is where you can add custom content using the Footer component:

Right Section

Contains:
  • Help Button: Opens the keyboard shortcuts dialog
  • Welcome Screen Hint: (shown when welcome screen is active)
These are built-in components.

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
Keyboard shortcuts:
  • Cmd/Ctrl + + - Zoom in
  • Cmd/Ctrl + - - Zoom out
  • Cmd/Ctrl + 0 - Reset zoom
  • Cmd/Ctrl + 1 - Zoom to fit

Undo/Redo Actions

  • Undo - Reverts the last action
  • Redo - Reapplies an undone action
Keyboard shortcuts:
  • Cmd/Ctrl + Z - Undo
  • Cmd/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 with role="contentinfo" for screen reader accessibility:
All interactive elements (buttons, controls) should have:
  • Descriptive aria-label or title attributes
  • Keyboard navigation support
  • Sufficient color contrast

Best Practices

  1. Keep it concise - Footer space is limited, avoid cluttering it
  2. Use icons - Icons help save space and improve scannability
  3. Show status - Use the footer for non-intrusive status updates
  4. Quick actions only - Reserve footer for frequently used actions
  5. Responsive design - Ensure footer adapts to mobile screens
  6. 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