all repos — gomponents @ b7a00582ac0052652bc2857ab57016b9dd4f8b0c

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
30
31
32
33
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 StrokeWidth(v string) g.Node {
	return g.Attr("stroke-width", v)
}

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