Public readonly variable

A renderered SVG image of a Tldraw snapshot.

Example
;<TldrawImage
  snapshot={snapshot}
  pageId={pageId}
  background={false}
  darkMode={true}
  bounds={new Box(0, 0, 600, 400)}
  scale={1}
/>
Signature
TldrawImage: import('react').NamedExoticComponent<{
  background?: boolean | undefined
  bounds?: import('@tldraw/editor').Box | undefined
  darkMode?: boolean | undefined
  format?: 'png' | 'svg' | undefined
  padding?: number | undefined
  pageId?: TLPageId | undefined
  preserveAspectRatio?: string | undefined
  scale?: number | undefined
  shapeUtils?: readonly TLAnyShapeUtilConstructor[] | undefined
  snapshot: StoreSnapshot<TLRecord>
}>
References

Box, TLPageId, TLAnyShapeUtilConstructor, StoreSnapshot, TLRecord

Source

packages/tldraw/src/lib/TldrawImage.tsx

TldrawHandlesTldrawImageProps