Public typealias

Props for the Tldraw and TldrawEditor components.

Signature
type TldrawEditorProps = TldrawEditorBaseProps &
  (
    | {
        store: TLStore | TLStoreWithStatus
      }
    | {
        store?: undefined
        snapshot?: StoreSnapshot<TLRecord>
        initialData?: SerializedStore<TLRecord>
        persistenceKey?: string
        sessionId?: string
        defaultName?: string
      }
  )
References

TldrawEditorBaseProps, TLStore, TLStoreWithStatus, StoreSnapshot, TLRecord, SerializedStore

Source

packages/editor/src/lib/TldrawEditor.tsx

TldrawEditorBasePropsTLEditorComponents