TLExternalContentProps
Table of contents
interface TLExternalContentProps {}Properties
acceptedImageMimeTypes
The mime types of images that are allowed to be handled. When using the Tldraw component, defaults to DEFAULT_SUPPORTED_IMAGE_TYPES. If neither this nor acceptedVideoMimeTypes is provided, the registered asset utils determine which MIME types are allowed.
acceptedImageMimeTypes?: readonly string[];acceptedVideoMimeTypes
The mime types of videos that are allowed to be handled. When using the Tldraw component, defaults to DEFAULT_SUPPORT_VIDEO_TYPES. If neither this nor acceptedImageMimeTypes is provided, the registered asset utils determine which MIME types are allowed.
acceptedVideoMimeTypes?: readonly string[];maxAssetSize
The maximum size (in bytes) of an asset. Assets larger than this will be rejected. Defaults to 10mb (10 * 1024 * 1024).
maxAssetSize?: number;maxImageDimension
The maximum dimension (width or height) of an image. Images larger than this will be rescaled to fit. Defaults to infinity.
maxImageDimension?: number;