kopia lustrzana https://github.com/Tldraw/Tldraw
26 wiersze
468 B
TypeScript
26 wiersze
468 B
TypeScript
import { OfflineIndicator, Tldraw } from '@tldraw/tldraw'
|
|
import '@tldraw/tldraw/tldraw.css'
|
|
|
|
export default function Example() {
|
|
return (
|
|
<div className="tldraw__editor">
|
|
<Tldraw topZone={<OfflineIndicator />} shareZone={<CustomShareZone />} />
|
|
</div>
|
|
)
|
|
}
|
|
|
|
function CustomShareZone() {
|
|
return (
|
|
<div
|
|
style={{
|
|
backgroundColor: 'thistle',
|
|
width: '100%',
|
|
textAlign: 'center',
|
|
minWidth: '80px',
|
|
}}
|
|
>
|
|
<p>Share Zone</p>
|
|
</div>
|
|
)
|
|
}
|