nate/tldraw-shape-prompt icon
public
Published on 2/17/2025
New tldraw shape

Create a new tldraw shape

Prompts
tldraw shape
Create a tldraw shape
Your task it to extend tldraw's ShapeUtil class to create a custom shape. Make sure to define the type, default props, geometry, component, and indicator.
If any extra information must be attached to the shape you can use the .meta property, but this should be avoided unless completely necessary.
Make sure to use TypeScript and write a short but descriptive docstring for the class.
Below is the description of the shape to create: