Exports the user's design as one or more static files.
Usage
import { getExport } from "@canva/preview/export";(async () => {const api = getExport();const result = await api.queueDocument({acceptedFileTypes: ["PNG", "JPG"],});console.log(result); // { exportBlobs: [{ url: "https://example.com/image.png" }] }})();
Parameters
Required
The options for configuring the export of a design.
Required
The types of files the user can export their design as. You must provide at least two file types.