fix(docs): update shapes docs add the array of defined shapes (#1949)

### Change Type

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

### Release Notes

This pr add the custom defined shapes that's being passed to Tldraw

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
This commit is contained in:
Judicael 2023-10-02 17:54:00 +03:00 committed by GitHub
parent de2bf5419f
commit 8166766c19
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -142,6 +142,8 @@ import '@tldraw/tldraw/tldraw.css'
const MyCardShape = defineShape('card', { util: CardShapeUtil })
const MyCustomShapes = [MyCardShape]
export default function () {
return (
<div style={{ position: 'fixed', inset: 0 }}>
@ -229,4 +231,4 @@ You can turn on `pointer-events` to allow users to interact inside of the shape.
You can make shapes "editable" to help decide when they're interactive or not.
> todo
> todo