about summary refs log tree commit diff stats
path: root/html/attributes.go
diff options
context:
space:
mode:
authorMarkus Wüstenberg2024-06-06 12:49:01 +0200
committerGitHub2024-06-06 10:49:01 +0000
commitb950ec2c42bd613fa23625ab6360f58b9ba28e07 (patch)
tree45794e05ec926db604412975641fbfbdf9b302f6 /html/attributes.go
parent81b2d6a9e39ff8859400bfa806cb3e712049615c (diff)
downloadgomponents-b950ec2c42bd613fa23625ab6360f58b9ba28e07.tar.lz
gomponents-b950ec2c42bd613fa23625ab6360f58b9ba28e07.tar.zst
gomponents-b950ec2c42bd613fa23625ab6360f58b9ba28e07.zip
Add LabelAttr and List attributes (#175)
Fixes #168 and fixes #169.
Diffstat (limited to 'html/attributes.go')
-rw-r--r--html/attributes.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/html/attributes.go b/html/attributes.go
index 0bc5268..728807b 100644
--- a/html/attributes.go
+++ b/html/attributes.go
@@ -145,10 +145,18 @@ func Integrity(v string) g.Node {
 	return g.Attr("integrity", v)
 }
 
+func LabelAttr(v string) g.Node {
+	return g.Attr("label", v)
+}
+
 func Lang(v string) g.Node {
 	return g.Attr("lang", v)
 }
 
+func List(v string) g.Node {
+	return g.Attr("list", v)
+}
+
 func Loading(v string) g.Node {
 	return g.Attr("loading", v)
 }