blob: be814d8100e2b2f8cfa42045f78cec0eee84bf52 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
const zilch = @import("zilch");
pub const icons: []const zilch.Component = &.{
icon("menu"),
icon("upload"),
icon("settings"),
};
pub fn icon(name: []const u8) zilch.Component {
return .{
.namespace = "icon",
.name = name,
.html = .parse(@embedFile(name ++ ".svg")),
.css = @embedFile("index.css"),
.link = struct {},
};
}
|