all repos — gomponents @ dce03353aa6f9b7254cb6279ff3bf5d0c7564ff4

HTML components in pure Go

add helper for <search> element

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/search
Alan Pearce alan@alanpearce.eu
Wed, 19 Mar 2025 22:28:44 +0100
commit

dce03353aa6f9b7254cb6279ff3bf5d0c7564ff4

parent

3a9a1fd26540ddd0299771a729740cdd88239dde

1 files changed, 4 insertions(+), 0 deletions(-)

jump to
M html/elements.gohtml/elements.go
@@ -416,6 +416,10 @@ func S(children ...g.Node) g.Node { 	return g.El("s", g.Group(children))
 }
 
+func Search(children ...g.Node) g.Node {
+	return g.El("search", g.Group(children))
+}
+
 func Samp(children ...g.Node) g.Node {
 	return g.El("samp", g.Group(children))
 }