Back to Tldraw

Custom shape

apps/examples/src/examples/shapes/tools/custom-shape/README.md

5.2.3233 B
Original Source

A simple custom shape.


You can create custom shapes in tldraw by creating a shape util and passing it to the Tldraw component. In this example, we'll create a custom shape that is a simple rectangle with some text inside of it.