diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2026-10-26 09:23:55 +0100 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2026-10-26 09:23:55 +0100 |
| commit | 91d9b6992ac0ebee13704a3faefa8fd41a00075e (patch) | |
| tree | ea0a30cc0cfb2232d3e60c845c20a67b6cdf0b99 /src/app/components/navbutton/root.zig | |
| parent | 65300a13dcd11037218bf8ba61efd8ca19e5920e (diff) | |
zilch: dynamic element creation
Diffstat (limited to 'src/app/components/navbutton/root.zig')
| -rw-r--r-- | src/app/components/navbutton/root.zig | 4 |
1 files changed, 2 insertions, 2 deletions
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, |