Overview
Components created within the davinci platform can be saved and then embedded within standard HTML. This is done using the davinci library.
In the following code, the components variable is json (here it is truncated) that is created from a blog editor when the blog is copied to the clipboard. It is pasted into the code, then the davinci library is called by passing an id of an HTML element, and then components. The components will be rendered as in a blog within the HTML.
let components = {"type":"clipboard","children":[{"name":"section", ...
import('/lib/davinci/v1.0.0/davinci').then(dv=>{
dv.viewport('id', components);
});