all repos — gomponents @ b12942fb32082729e862eb53b8c3962534561e83

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)
}