Use the weq8 Web Component UI
mainTo display the visual equaliser interface, follow these steps:
- Import the UI module to register the
<weq8-ui />web component. - Add the
<weq8-ui />element to your HTML. - Assign your
WEQ8Runtimeinstance to theruntimeproperty of the web component element.
// 1. Import the UI module
import "weq8/ui"; // or "https://cdn.skypack.dev/weq8/ui"
// 2. (In HTML) <weq8-ui />
// 3. Connect the runtime to the UI
document.querySelector("weq8-ui").runtime = weq8;