tldraw/example/src/file-system.tsx
Steve Ruiz fa38c0ef0d
[improvement] examples (#264)
* Example project, fix bugs in readonly mode

* Adds ui options
2021-11-11 11:37:57 +00:00

14 lines
344 B
TypeScript

import * as React from 'react'
import { TLDraw, useFileSystem } from '@tldraw/tldraw'
export default function FileSystem(): JSX.Element {
const fileSystemEvents = useFileSystem()
// Use the Menu > File to create, open, and save .tldr files.
return (
<div className="tldraw">
<TLDraw {...fileSystemEvents} />
</div>
)
}