about summary refs log tree commit diff stats
path: root/svg/attributes.go
diff options
context:
space:
mode:
Diffstat (limited to 'svg/attributes.go')
-rw-r--r--svg/attributes.go29
1 files changed, 29 insertions, 0 deletions
diff --git a/svg/attributes.go b/svg/attributes.go
new file mode 100644
index 0000000..10b7c69
--- /dev/null
+++ b/svg/attributes.go
@@ -0,0 +1,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)
+}