External dialog
You can make dialogs open outside of the Tldraw
component by overriding our default styles. To see this in action, open the Insert embed dialog through the menu or by pressing 'Cmd + I'.
import { Tldraw } from 'tldraw'
import 'tldraw/tldraw.css'
// This CSS file overrides the default styles for dialogs
import './external-dialog.css'
export default function ExternalDialog() {
return (
<div style={{ margin: 32, width: 600, height: 400 }}>
<Tldraw />
</div>
)
}
Is this page helpful?
Prev
Multiple editorsNext
External UI (using context)