OptionalcanvasAdditional MUI sx props for the canvas container
OptionalcolorsCustom colors for styling
OptionalcurrentCurrent drawing color (controlled mode)
OptionalcurrentCurrent selected tool (controlled mode)
OptionalcurrentCurrent stroke width (controlled mode)
OptionaldefaultDefault drawing color (uncontrolled mode)
OptionaldefaultDefault tool (uncontrolled mode)
OptionaldefaultDefault stroke width (uncontrolled mode)
OptionalenableEnable add-in system (default: true)
OptionalenableEnable auto-save (default: true)
OptionalenabledInitial add-ins to enable
File ID of the whiteboard to load/edit
OptionaliconsCustom icons for UI elements
OptionalinitialInitial file data for newly created whiteboards. When provided, the whiteboard will initialize with this data instead of fetching from the server. This is useful for newly created files that may not be immediately available.
OptionalisOverride ownership check. When true, always allows saving regardless of file owner field.
OptionallabelsCustom labels for UI elements
OptionalonCalled when canvas is cleared
OptionalonCalled when the whiteboard should close
OptionalonCallback when color changes
OptionalonCalled when an async operation fails (file load/save, sync, duplication, etc.)
OptionalonCalled when an object is added
OptionalonCalled when an object is modified
OptionalonCalled when an object is removed
OptionalonCalled when read-only state changes
OptionalonCalled when save is triggered
OptionalonCalled when the whiteboard title changes
OptionalonCallback when tool changes
OptionalonCalled when unsaved changes state changes
OptionalonCallback when width changes
OptionalshowShow grid lines (default: false)
OptionalshowShow the toolbar (default: true)
OptionalshowShow the zoom controls (default: true)
OptionalstylesCustom style configuration
OptionalsxAdditional MUI sx props for the container
OptionaltoolbarAdditional MUI sx props for the toolbar
Main Whiteboard component props