DragData

DragData

Data describing what is being dragged onto the canvas. Different types of drag data result in different canvas insertions.

Definition

type DragData = SvgDragData | ImageDragData | ComponentInstanceDragData | DetachedComponentLayersDragData

Supported drag types: - "image" - An image with an optional preview image, alt text, and resolution. - "svg" - An SVG string with an optional preview image. Use invertInDarkMode to invert the drag preview in dark mode. - "componentInstance" - A component instance identified by its module URL. - "detachedComponentLayers" - Detached layers from a component designed in Framer. Use layout: true to insert as a layout block.

Methods & Properties