Seamless Integration for Powerful Carousel Creation
See how simple it is to add our AI-powered carousel creator to your app. This example shows basic setup and usage.
Installation
To install the Postnitro Embed package, run the following command:
Initialization
Before using the Postnitro Embed functionality, you need to initialize the editor instance.
Module Initialization
Default Headshot
You can set a default headshot for the editor by passing the defaultHeadshot option:
Creating/Updating Carousel
Create a New Carousel
To create a new carousel, call the createDesign method and provide a callback function to handle the export data:
Update an Existing Carousel
To edit an existing carousel, call the editDesign method and provide the carousel ID and a callback function to handle the export data:
Understanding the ExportData type
The callback function receives an ExportData object, which contains the following properties: