Javascript Usage(Frontend)
This demonstrates how the user would create their own UI solely in javascript.
Creating a UI
import { UIManager } from "./ui.js";
const uiManager = new UIManager();
uiManager.createUI("myCustomUI", () => `
<h1>My Custom UI</h1>
<p>Welcome to my UI!</p>
<button id="closeBtn" class="close-btn">Close</button>
`);Show & Hide the UI
uiManager.showUI("myCustomUI");uiManager.hideUI("myCustomUI");