diff options
Diffstat (limited to 'src/app/components/navbutton/root.zig')
| -rw-r--r-- | src/app/components/navbutton/root.zig | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/app/components/navbutton/root.zig b/src/app/components/navbutton/root.zig new file mode 100644 index 0000000..0040c9d --- /dev/null +++ b/src/app/components/navbutton/root.zig @@ -0,0 +1,16 @@ +const z = @import("z"); + +const Self = @This(); + +pub const component: z.Component = .{ + .name = "navbutton", + .html = .parse(@embedFile("index.html")), + .css = @embedFile("index.css"), + .link = @This(), +}; + +element: *z.Object, + +pub fn init(self: *Self, element: *z.Object) void { + self.element = element; +} |