CanvaElement

This feature is coming soon.

Represents the iframe that contains the user's image.

Signature

type CanvaElement<
T extends CanvaMedia | CanvaImageUrl | CanvaImageBlob | undefined
> = {
type: CanvaDataType.CANVA_ELEMENT;
data: T;
layout: CanvaElementLayout;
};

Properties

Name

Type

Required

Description

type

CanvaDataType.CANVA_ELEMENT

Yes

This value is always "canva_element".

data

CanvaMedia | CanvaImageBlob | CanvaImageUrl | undefined

Yes

The user's image.

layout

CanvaElementLayout

Yes

The layout of the iframe.