kopia lustrzana https://github.com/Tldraw/Tldraw
18 wiersze
335 B
TypeScript
18 wiersze
335 B
TypeScript
import { Tldraw } from 'tldraw'
|
|
import 'tldraw/tldraw.css'
|
|
|
|
export default function Develop() {
|
|
return (
|
|
<div className="tldraw__editor">
|
|
<Tldraw
|
|
persistenceKey="tldraw_example"
|
|
licenseKey="as"
|
|
onMount={(editor) => {
|
|
;(window as any).app = editor
|
|
;(window as any).editor = editor
|
|
}}
|
|
/>
|
|
</div>
|
|
)
|
|
}
|