Skip to content

ReactSketchCanvas

ReactSketchCanvas(props): ReactNode

ReactSketchCanvas is a wrapper around Canvas component to provide a controlled way to manage the canvas paths. It provides a set of methods to manage the canvas paths, undo, redo, clear and reset the canvas.

Parameters

props: ReactSketchCanvasProps & RefAttributes<ReactSketchCanvasRef>

Props for the ReactSketchCanvas component

Returns

ReactNode

ReactSketchCanvas component

Source

packages/react-sketch-canvas/src/ReactSketchCanvas/index.tsx:21