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/icons | |
| parent | 65300a13dcd11037218bf8ba61efd8ca19e5920e (diff) | |
zilch: dynamic element creation
Diffstat (limited to 'src/app/components/icons')
| -rw-r--r-- | src/app/components/icons/root.zig | 4 |
1 files changed, 2 insertions, 2 deletions
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 {}, - }; + }); } |