all repos — gomponents @ 3e9e00ca0dc6b58e58694d84c97a1d2f2ab4002b

HTML components in pure Go

components/elements.go (view raw)

1
2
3
4
5
6
7
8
9
10
package components

import (
	g "github.com/maragudk/gomponents"
	. "github.com/maragudk/gomponents/html"
)

func InputHidden(name, value string, children ...g.Node) g.Node {
	return Input(Type("hidden"), Name(name), Value(value), g.Group(children))
}