AnthoLume/web/assets/icons.go
2025-08-17 17:04:54 -04:00

19 lines
338 B
Go

package assets
import (
"strconv"
g "maragu.dev/gomponents"
h "maragu.dev/gomponents/html"
)
func Icon(name string, size int) g.Node {
return h.SVG(
g.Attr("width", strconv.Itoa(size)),
g.Attr("height", strconv.Itoa(size)),
g.Attr("viewBox", "0 0 24 24"),
g.Attr("fill", "currentColor"),
Asset("svgs/"+name+".svg"),
)
}