TldrawEditorProps

Public TypeAlias

Signature
type TldrawEditorProps = {
  children?: any
  shapes?: readonly AnyTLShapeInfo[]
  tools?: readonly TLStateNodeConstructor[]
  assetUrls?: RecursivePartial<TLEditorAssetUrls>
  autoFocus?: boolean
  components?: Partial<TLEditorComponents>
  onMount?: (editor: Editor) => (() => void) | undefined | void
} & (
  | {
      store: TLStore | TLStoreWithStatus
    }
  | {
      store?: undefined
      initialData?: StoreSnapshot<TLRecord>
      persistenceKey?: string
      sessionId?: string
      defaultName?: string
    }
)
References

AnyTLShapeInfo, TLStateNodeConstructor, RecursivePartial, TLEditorAssetUrls, Partial, TLEditorComponents, Editor, TLStore, TLStoreWithStatus, StoreSnapshot, TLRecord

Edit this page
Last edited on 15 June 2023
TldrawEditorTLEditorAssetUrls