@mocanvas/mocanvas · function

TldrawImage

declare function TldrawImage({ snapshot, pageId, shapeIds, padding, background, darkMode, shapeUtils, bindingUtils, user, alt, className, style, }: TldrawImageProps): react.JSX.Element

A snapshot as an inline SVG.

Rendered in an effect rather than during render: building the editor and walking the document is work, and doing it synchronously would block the first paint of whatever page is showing the thumbnail.

mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.