Skip to main content
The Tsdraw component renders a complete drawing canvas with toolbar, style panel, and all built-in tools.

Basic usage

A full-featured canvas with default settings. See props for all configuration options.

With persistence

With custom tools and UI

Aliases

TsdrawCanvas is an alias for Tsdraw. Both export the same component:

Styling

The component fills its container by default. Set width and height props or use CSS on the parent element to control the size:
The className and style props are forwarded to the root element: