@objectifthunes/whiteboard
WHITEBOARD SAAS

ZoomBar

Fixed-position zoom controls: in/out, fit, reset positions, snap-to-grid. Slot extra actions in via extraActions.


PREVIEW
SOURCE
import { WhiteboardShell, ThemeToggle } from '@objectifthunes/whiteboard'

<WhiteboardShell extraActions={<ThemeToggle theme={theme} onToggle={toggle} />}>
  {/* …panels… */}
</WhiteboardShell>
NOTES

The ZoomBar is rendered automatically by WhiteboardShell. Slot extra actions — most often a ThemeToggle — via the shell's extraActions prop.

Snap-to-grid toggles via the grid icon. While on, dragging a panel snaps it to a 20px grid (theWHITEBOARD_GRID constant) and a global whiteboard-snap-now event aligns every existing panel.