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>
pull/1986/head
Judicael 2023-10-02 17:54:00 +03:00 zatwierdzone przez GitHub
rodzic de2bf5419f
commit 8166766c19
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -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