From 91d9b6992ac0ebee13704a3faefa8fd41a00075e Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Mon, 26 Oct 2026 09:23:55 +0100 Subject: zilch: dynamic element creation --- src/app/components/navbutton/root.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/app/components/navbutton') diff --git a/src/app/components/navbutton/root.zig b/src/app/components/navbutton/root.zig index 2f26116..a512d1d 100644 --- a/src/app/components/navbutton/root.zig +++ b/src/app/components/navbutton/root.zig @@ -6,12 +6,12 @@ const Promise = zilch.Promise; const Self = @This(); -pub const component: zilch.Component = .{ +pub const component: zilch.Component = .build(.{ .name = "navbutton", .html = .parse(@embedFile("index.html")), .css = @embedFile("index.css"), .link = @This(), -}; +}); element: *zilch.Object, shadow_root: *zilch.Object, -- cgit v1.2.3-70-g09d2