From d0f90548f5edb32225af4a1f79413a2a56d186c8 Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Fri, 9 Oct 2026 09:40:06 +0200 Subject: app: add navbutton --- src/app/components/icons/root.zig | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/app/components/icons/root.zig (limited to 'src/app/components/icons/root.zig') diff --git a/src/app/components/icons/root.zig b/src/app/components/icons/root.zig new file mode 100644 index 0000000..a2b0fa6 --- /dev/null +++ b/src/app/components/icons/root.zig @@ -0,0 +1,21 @@ +const z = @import("z"); + +pub const icons: []const z.Component = &.{ + icon("menu"), + icon("upload"), + icon("settings"), +}; + +const Icon = struct { + pub fn init(_: *@This(), _: *z.Object) void {} +}; + +pub fn icon(name: []const u8) z.Component { + return .{ + .namespace = "icon", + .name = name, + .html = .parse(@embedFile(name ++ ".svg")), + .css = @embedFile("index.css"), + .link = Icon, + }; +} -- cgit v1.2.3-70-g09d2