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