Skip to content

Canvas

Canvas(props): ReactNode

Canvas component

This is a low-level component that is used to draw on the canvas. This component is used by the ReactSketchCanvas component with some additional features.

Parameters

props: CanvasProps & RefAttributes<CanvasRef>

The props for the Canvas component

Returns

ReactNode

The Canvas component

Source

packages/react-sketch-canvas/src/Canvas/index.tsx:50