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/icons/root.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/app/components/icons') diff --git a/src/app/components/icons/root.zig b/src/app/components/icons/root.zig index be814d8..0328472 100644 --- a/src/app/components/icons/root.zig +++ b/src/app/components/icons/root.zig @@ -7,11 +7,11 @@ pub const icons: []const zilch.Component = &.{ }; pub fn icon(name: []const u8) zilch.Component { - return .{ + return .build(.{ .namespace = "icon", .name = name, .html = .parse(@embedFile(name ++ ".svg")), .css = @embedFile("index.css"), .link = struct {}, - }; + }); } -- cgit v1.2.3-70-g09d2