HTML API vs. JavaScript API

You can add a Canva Button to a web page using Canva's HTML API or JavaScript API:

  • For a simple integration with a few lines of code, Canva recommends the HTML API.
  • For greater flexibility and a more customized integration experience, Canva recommends the JavaScript API.
  • For web pages rendered dynamically via React, Angular, or a similar framework or library, you must:
    • Render the Canva Button yourself using HTML.
    • Style the Canva Button yourself using CSS.
    • Integrate the Canva Button using Canva's JavaScript API.