From 6f7752c20f605dda102992a984d111cdcd19c57b Mon Sep 17 00:00:00 2001 From: Markus Wüstenberg Date: Wed, 5 May 2021 12:53:32 +0200 Subject: Add svg package and a few helpers (#67) Introducing SVG, to inline vector graphics in your HTML! 🥳--- svg/attributes.go | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 svg/attributes.go (limited to 'svg/attributes.go') 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) +} -- cgit 1.4.1