OptionalcanWhen false, the drawing tools (pen toggle, colour swatches,
width slider) are disabled / hidden — typically because the
room owner has locked drawing for everyone else. Clear-mine
stays enabled (the user can still wipe their existing strokes
even if they can't add new ones). Defaults to true for
back-compat. Wire to useAnnotationSync().canDraw.
OptionalcanWhen false (or omitted) the lock toggle is hidden. Wire to
useAnnotationSync().canSetDrawingLock.
OptionalcolorsOptionaldrawingCurrent drawing-lock state (synced across peers). When omitted
the lock toggle is hidden — pass it through from
useAnnotationSync().drawingLocked.
OptionallabelsClear every stroke. Disabled visually when canClearAll is false.
Clear only this caller's strokes.
OptionalonToggle the drawing lock. When provided alongside canSetDrawingLock,
the toolbar renders a lock/unlock button. Wire to
useAnnotationSync().setDrawingLocked.
Called when the user picks a different colour, width, or toggles
draw-mode off (with null).
OptionalpaletteAvailable palette. Defaults to a 6-colour high-contrast set.
OptionalrenderOptional render-prop wrapper for custom layout (e.g. moving the chip to a different corner). When omitted the toolbar renders itself in a flexbox row.
OptionalstylesActive tool state, or null to indicate "draw mode off".
Whether the clear-all action is permitted for this caller.