57fcb3d07b
This PR adds additional props to the <Tldraw> component for setting the maximum asset size, maximum image dimensions, accepted image types, and accepted video types. It adds an example for using these properties and for uploading image assets. ### Change Type - [x] `minor` — New feature ### Test Plan 1. Try (and fail) to upload image types other than the default types. 2. Try (and fail) to upload images / videos larger than 10mb. 3. Use the example to customize the properties. ### Release Notes - [@tldraw/tldraw] add asset props |
||
---|---|---|
.. | ||
e2e | ||
src | ||
package.json | ||
README.md | ||
tsconfig.json | ||
vercel.json | ||
vite.config.ts |