TldrawImage
See source codeTable of contents
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}
/>Properties
Extends TLImageExportOptions.
assetUrls
optional
Asset URL overrides.
assetUrls?: TLUiAssetUrlOverridesbackground
optional
from TLImageExportOptions
background?: booleanbindingUtils
optional
Additional binding utils to use.
bindingUtils?: readonly TLAnyBindingUtilConstructor[]bounds
optional
from TLImageExportOptions
bounds?: BoxdarkMode
optional
from TLImageExportOptions
darkMode?: booleanformat
optional
The image format to use. Defaults to 'svg'.
format?: 'png' | 'svg'licenseKey
optional
The license key.
licenseKey?: stringpadding
optional
from TLImageExportOptions
padding?: numberpageId
optional
The page to display. Defaults to the first page.
pageId?: TLPageIdpixelRatio
optional
from TLImageExportOptions
pixelRatio?: numberpreserveAspectRatio
optional
from TLImageExportOptions
preserveAspectRatio?: React.SVGAttributes<SVGSVGElement>['preserveAspectRatio']quality
optional
from TLImageExportOptions
quality?: numberscale
optional
from TLImageExportOptions
scale?: numbershapeUtils
optional
Additional shape utils to use.
shapeUtils?: readonly TLAnyShapeUtilConstructor[]snapshot
The snapshot to display.
snapshot: Partial<TLEditorSnapshot> | TLStoreSnapshotPrev
TldrawHandlesNext
TldrawScribble