blob: 03284721a2655504be604f220a07885f8041205e (
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 .build(.{
.namespace = "icon",
.name = name,
.html = .parse(@embedFile(name ++ ".svg")),
.css = @embedFile("index.css"),
.link = struct {},
});
}
|