Back to Tldraw

Custom tool (screenshot)

apps/examples/src/examples/shapes/tools/screenshot-tool/README.md

5.0.1248 B
Original Source

A custom tool that takes a screenshot of the canvas.


Tools are the parts of tldraw's state chart. Most interactions in tldraw are tools.

This example shows how to create a custom tool that takes a screenshot of a specific area of the canvas.