tldraw/example/src/embedded.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

31 lines
664 B
TypeScript

import { TLDraw } from '@tldraw/tldraw'
import * as React from 'react'
export default function Embedded(): JSX.Element {
return (
<div style={{ padding: '2% 10%', width: 'calc(100% - 100px)' }}>
<div
style={{
position: 'relative',
width: '100%',
height: '500px',
overflow: 'hidden',
marginBottom: '32px',
}}
>
<TLDraw id="small5" />
</div>
<div
style={{
position: 'relative',
width: '100%',
height: '500px',
overflow: 'hidden',
}}
>
<TLDraw id="embedded" />
</div>
</div>
)
}