tldraw/apps/examples/public/heart-icon.svg
Taha e543797b81
Add custom tool examples (#3064)
Two examples:

One in the UI section that shows how to add a tool to the toolbar along
with an icon

One in the shapes and tools section that shows a simple sticker tool
with no child states

I'll go over the copy again before it's merged, but don't want to spend
too long on it right now in case the feeling is that these should both
be a single example.

Next: The [minimal
example](https://tldraw.dev/examples/editor-api/only-editor) is
currently the best example we have of a tool with child states. I think
this should be adapted and copied/moved over to the custom shapes and
tools category.

closes tld-2266

- [x] `documentation` — Changes to the documentation only[^2]

### Release Notes

- Adds a simple custom tool example
2024-03-05 09:27:53 +00:00

3 lines
232 B
XML

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<path d="M12 20.4l-1.8-1.6C4.8 13.4 2 10.5 2 7.2 2 4.1 4.1 2 7.2 2c1.9 0 3.7 1 4.8 2.6C13.1 3 15 2 16.8 2 19.9 2 22 4.1 22 7.2c0 3.3-2.8 6.2-8.2 11.6L12 20.4z"/>
</svg>