This commit is contained in:
Ian Gulliver
2024-12-21 07:26:27 -08:00
parent 4dc3675dbd
commit 1c90c313f0
9 changed files with 77 additions and 68 deletions

12
js/main.js Normal file
View File

@@ -0,0 +1,12 @@
import { ElemWrapper } from "./elemwrapper";
async function main() {
const root = new ElemWrapper(document.body);
const tabGroup = root.add("sl-tab-group");
tabGroup
.add("sl-tab", "slot", "nav", "panel", "tasks", "active", "")
.add("sl-icon", "name", "slash-circle", "style", "font-size: 20px");
tabGroup
.add("sl-tab", "slot", "nav", "panel", "tags")
.add("sl-icon", "name", "tags", "style", "font-size: 20px");
}
document.addEventListener("DOMContentLoaded", main);