BUTTONS
OverlayIconButton
Secondary icon-only button absolutely positioned over a canvas. Placement: top-right, bottom-left, bottom-right.
PREVIEW
Three overlay buttons — corners.
SOURCE
import { CanvasStage, OverlayIconButton } from '@objectifthunes/whiteboard'
import { Maximize2 } from 'lucide-react'
<CanvasStage>
<YourScene />
<OverlayIconButton placement="top-right" aria-label="Fullscreen">
<Maximize2 size={14} />
</OverlayIconButton>
</CanvasStage>NOTES
Absolutely positioned. placement picks the corner — top-right, bottom-left, or bottom-right. Parent needs position: relative (CanvasStage handles that for you).
Stops pointer / wheel / context-menu propagation by default so it doesn't fight the canvas it sits over.