Table of contents

Public interface

Props for the Tldraw and TldrawUi components.

Signature
interface TldrawUiContextProviderProps {}
Source

packages/tldraw/src/lib/ui/context/TldrawUiContextProvider.tsx


Properties

assetUrls

Public propertysignature

Urls for where to find fonts and other assets for the UI.

Signature
assetUrls?: RecursivePartial<TLUiAssetUrls>

children

Public propertysignature

The component's children.

Signature
children?: ReactNode

components

Public propertysignature

Overrides for the UI components.

Signature
components?: TLUiComponents
References

TLUiComponents


forceMobile

Public propertysignature

Whether to always should the mobile breakpoints.

Signature
forceMobile?: boolean

onUiEvent

Public propertysignature

Callback for when an event occurs in the UI.

Signature
onUiEvent?: TLUiEventHandler
References

TLUiEventHandler


overrides

Public propertysignature

Overrides for the UI.

Signature
overrides?: TLUiOverrides | TLUiOverrides[]
References

TLUiOverrides


TldrawUiContextProviderTldrawUiDialogBody