Skip to main content
ExportControlsComponentProps
Props for the ExportControlsComponent
NameTypeDescription
allowJpgExport?booleanDefaults to true.
allowPngExport?booleanDefaults to true.
allowSvgExport?booleanDefaults to true.
imageOptions?ImageExportUIOptionsOptions for image exports.
label?stringWhat to show in the label, if visible. Defaults to "Export:".
labelProperty?stringThe name of the property that holds the label for a vertex
margins?PointXYOptional margins to apply to both SVG and image exports. Will not override any margins specified in svgOptions or imageOptions.
showLabel?booleanWhether or not to show a label in front of the buttons. Defaults to true.
surfaceId?stringOptional ID of the surface to attach to. It is better to nest this component inside a SurfaceComponent or SurfaceProvider.
svgOptions?SvgExportUIOptionsOptions for SVG exports.