Public function

Signature
function Tldraw(
  props: TldrawEditorBaseProps &
    (
      | {
          store: TLStore | TLStoreWithStatus
        }
      | {
          store?: undefined
          persistenceKey?: string
          sessionId?: string
          defaultName?: string
          snapshot?: StoreSnapshot<TLRecord>
        }
    ) &
    TldrawUiProps &
    Partial<TLExternalContentProps> & {
      assetUrls?: RecursivePartial<TLEditorAssetUrls>
    }
): JSX.Element
Parameters
NameDescription

props

TldrawEditorBaseProps &
  (
    | {
        store: TLStore | TLStoreWithStatus
      }
    | {
        store?: undefined
        persistenceKey?: string
        sessionId?: string
        defaultName?: string
        snapshot?: StoreSnapshot<TLRecord>
      }
  ) &
  TldrawUiProps &
  Partial<TLExternalContentProps> & {
    assetUrls?: RecursivePartial<TLEditorAssetUrls>
  }
Returns
JSX.Element
References

TldrawEditorBaseProps, TLStore, TLStoreWithStatus, StoreSnapshot, TLRecord, TldrawUiProps

Source

packages/tldraw/src/lib/Tldraw.tsx

TLDRAW_FILE_EXTENSIONTldrawFile