Documentation Index
Fetch the complete documentation index at: https://docs.tsdraw.com/llms.txt
Use this file to discover all available pages before exploring further.
Now, to begin…
Firstly, install@tsdraw/react (it includes the core engine):
Persistence
Persistence is when the state of the canvas stays constant. To enable persistence, pass apersistenceKey to the Tsdraw component. The state now lives in your browser.
Backgrounds
Want a grid, lines, or dots as the background of your canvas? Just pass abackground prop to the Tsdraw component. I told you, tsdraw is truly that customizable.
The Editor
Now, to access theEditor instance, which manages shapes, tools, and the viewport, just pass a onMount callback to the Tsdraw component.
Next steps
Now that you have a working canvas:- Learn more about the editor and what it can do
- Explore the built-in shapes and tools, and make your own custom tools
- Customize the user interface to your liking