Public typealias

Props for the Tldraw and TldrawEditor components.

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

TldrawEditorBaseProps, SerializedStore, TLRecord, MigrationSequence, StoreSnapshot, TLStore, TLStoreWithStatus

Source

packages/editor/src/lib/TldrawEditor.tsx

TldrawEditorBasePropsTLEditorComponents