Persistence key

If the persistenceKey prop is provided to the <Tldraw/> component, the editor will persist its data locally under that key.

import { Tldraw } from 'tldraw'
import 'tldraw/tldraw.css'

export default function PersistenceKeyExample() {
	return (
		<div className="tldraw__editor">
			<Tldraw persistenceKey="example" />
		</div>
	)
}
Is this page helpful?
Prev
Static assets
Next
Read-only