summaryrefslogtreecommitdiff
path: root/web/components/grid/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/grid/index.ts
parent1e15fcceddfd2710c84fee0d68988a8eacce7453 (diff)
feat(web): setup components
Diffstat (limited to 'web/components/grid/index.ts')
-rw-r--r--web/components/grid/index.ts14
1 files changed, 14 insertions, 0 deletions
diff --git a/web/components/grid/index.ts b/web/components/grid/index.ts
new file mode 100644
index 0000000..7faf6b1
--- /dev/null
+++ b/web/components/grid/index.ts
@@ -0,0 +1,14 @@
+import h, { type CreateElement } from "../../html";
+
+class NotiveGridElement extends HTMLElement {
+ foo: string;
+
+ connectedCallback() {
+ this.appendChild(h.p("OK: " + this.foo));
+ }
+}
+
+customElements.define("ntv-grid", NotiveGridElement);
+
+export default ((...args: any[]): NotiveGridElement =>
+ (h as any)["ntv-grid"](...args)) as CreateElement<NotiveGridElement>;