See a live demo here.
Some simple bindings between playcanvas and dat.gui for easily creating debug UI and interactive demos.
Include the dat.gui lib in your project by getting the source from here.
Then include build/umd/playcanvas-datgui.js
and make sure it is loaded after the dat.gui.js script.
Add the component to an object in the scene and view the inspector properties for configuration info. You can also view an example here.
npm i -S playcanvas-datgui
Import this module into your bundle and it will register itself as a script. It requires the dat.gui dependency.