all repos — gomponents @ 6f7752c20f605dda102992a984d111cdcd19c57b

HTML components in pure Go

svg/attributes.go (view raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package svg

import (
	g "github.com/maragudk/gomponents"
)

func ClipRule(v string) g.Node {
	return g.Attr("clip-rule", v)
}

func D(v string) g.Node {
	return g.Attr("d", v)
}

func Fill(v string) g.Node {
	return g.Attr("fill", v)
}

func FillRule(v string) g.Node {
	return g.Attr("fill-rule", v)
}

func Stroke(v string) g.Node {
	return g.Attr("stroke", v)
}

func ViewBox(v string) g.Node {
	return g.Attr("viewBox", v)
}