JGuang

Toasts and dialogs

Toasts and dialogs · tldraw

Toasts and dialogs

Show toasts and dialogs from your own UI with the useToasts and useDialogs hooks.

Official example

The preview embeds the official tldraw examples site. tldraw hosts it and updates it from its main branch; JGuang does not copy the example source or the SDK.

Use it in a project

npm install tldraw@5.5.2

The examples site runs main-branch code, so some APIs may be newer than the stable npm release. Check APIs against your installed version before adapting an example. Import tldraw/tldraw.css and give the editor container an explicit size.

License

The tldraw SDK uses the tldraw license: development use is free, and production deployments need a valid license key (trial, commercial or hobby).