We’re excited to bring you a highly requested featured, now available under @canva/preview. Available now, you can Add New Pages to your design with the Canva Apps SDK! ![]()
As a reminder all apps that use Preview features are not eligible for release the Canva Apps Marketplace.
Under @canva/preview/design, there are 2 new methods to support Adding New Pages:
design.addPage, which allows adding a page with pre-populated elements. See docs here.design.getDefaultPageDimensionswhich retrieves the default dimensions of a new page in the design. See docs here.
Rebase or clone the starter kit repo to find the latest examples for working with Adding a Page.
![]()
We know this will help in programmatically adding new pages to designs with your apps. Design whole pages in the side panel and add the new page to existing designs. Use the default dimensions to know how and where to place elements on the new page. We can’t wait to see what you create!
As always, please share any feedback on the APIs and Methods under @canva/preview as these early releases are your chance to help shape the future of Canva Developers. ![]()