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:
parent
de2bf5419f
commit
8166766c19
1 changed files with 3 additions and 1 deletions
|
@ -142,6 +142,8 @@ import '@tldraw/tldraw/tldraw.css'
|
||||||
|
|
||||||
const MyCardShape = defineShape('card', { util: CardShapeUtil })
|
const MyCardShape = defineShape('card', { util: CardShapeUtil })
|
||||||
|
|
||||||
|
const MyCustomShapes = [MyCardShape]
|
||||||
|
|
||||||
export default function () {
|
export default function () {
|
||||||
return (
|
return (
|
||||||
<div style={{ position: 'fixed', inset: 0 }}>
|
<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.
|
You can make shapes "editable" to help decide when they're interactive or not.
|
||||||
|
|
||||||
> todo
|
> todo
|
||||||
|
|
Loading…
Reference in a new issue