Learn
Reference
Examples
Learn
Reference
Examples
Examples
Getting Started
Tldraw component
Static assets
Persistence key
Read-only
Force mobile
Infer dark mode
Inset editor
Scrolling container
Editor focus
Multiple editors
UI & Theming
Custom actions menu
Custom context menu
Custom debug menu
Custom help menu
Custom keyboard shortcuts dialog
Custom main menu
Custom navigation panel
Custom page menu
Custom quick actions
Custom style panel
Custom toolbar
Custom zoom menu
External UI
External UI (Context)
Hidden UI components
Hide UI
Inset canvas
Add a tool to the Toolbar
Changing default colors
Custom UI
UI zones
Canvas components
Context toolbar
Error boundary
Keyboard shortcuts
Things on the canvas
External dialog
Floaty window
Inline layout
Tldraw image component
Shapes & Tools
Selection UI
Rich text
Speech bubble
Speech bubble with rich text
Custom shape
Custom tool
Interactive shape
Using tldraw styles
Bounds Snapping Shape
Custom tool (screenshot)
Editable shape
Using custom styles
Custom shape and tool
Data & Assets
Local Storage
Asset props
External content sources
Hosted images
Local images
Shape meta
Shape meta (on change)
Shape meta (on create)
Editor API
Code x-ray for UI events
Controlling the editor
Snapshots
Canvas events
Store events
Minimal
Sublibraries
Collaboration
User presence
YJS
Close
Speech bubble
A custom shape with handles
Rich text
Speech bubble with rich text