Back to Tldraw

Asset options

apps/examples/src/examples/configuration/asset-props/README.md

5.0.1285 B
Original Source

Control the assets (images, videos, etc.) that can be added to the canvas.


This example demonstrates the <Tldraw/> component's props that give you control over assets: which types are allowed (image only here), the maximum size (set to 1 MB), and maximum dimensions (no limit).