You can make the tldraw editor read-only by updating theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/tldraw/tldraw/llms.txt
Use this file to discover all available pages before exploring further.
isReadonly instance state. This disables all editing functionality while keeping navigation and viewing features.
Implementation
ReadOnlyExample.tsx
What happens in read-only mode
When read-only mode is enabled:- Users cannot create, edit, or delete shapes
- The toolbar shows only the select tool, hand tool, and laser pointer
- Users can still pan and zoom the canvas
- Selection is still possible (but not modification)
- Context menus are disabled for editing actions
Dynamic read-only state
You can toggle read-only mode dynamically:Use cases
Presentations
Display diagrams and drawings without allowing modifications
Approval workflows
Show content for review before enabling editing
Public galleries
Share work publicly while preventing unwanted changes
Archive viewing
Browse historical content without risk of accidental edits
Conditional read-only
You might want to conditionally enable read-only mode based on user permissions:Read-only mode is different from hiding the UI. Even with
hideUi prop, users can still edit shapes. Use isReadonly to truly prevent editing.Related
- Custom UI - Build your own interface
- Controlled editor - Control the editor programmatically