summaryrefslogtreecommitdiff
path: root/web/components/app/index.ts
diff options
context:
space:
mode:
authorJosh Kingsley <josh@joshkingsley.me>2025-10-25 16:24:53 +0300
committerJosh Kingsley <josh@joshkingsley.me>2025-10-25 22:09:35 +0300
commita658e571ef245a200884ea96198c54188ae650da (patch)
tree636039604c7ccd84913c9f17a5a38bbbeb1c83b0 /web/components/app/index.ts
parent1e15fcceddfd2710c84fee0d68988a8eacce7453 (diff)
feat(web): setup components
Diffstat (limited to 'web/components/app/index.ts')
-rw-r--r--web/components/app/index.ts13
1 files changed, 13 insertions, 0 deletions
diff --git a/web/components/app/index.ts b/web/components/app/index.ts
new file mode 100644
index 0000000..f4eaff1
--- /dev/null
+++ b/web/components/app/index.ts
@@ -0,0 +1,13 @@
+import ntvGrid from "../grid";
+
+class NotiveAppElement extends HTMLElement {
+ connectedCallback() {
+ this.append(
+ ...window.notive.doc.grids.map((_grid) => {
+ return ntvGrid({ foo: "1" });
+ }),
+ );
+ }
+}
+
+customElements.define("ntv-app", NotiveAppElement);