about summary refs log tree commit diff stats
path: root/attr/form.go
blob: b3eec0531c99ad1eca60ea474358046c409e3cd8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package attr

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

// Placeholder returns an attribute with name "placeholder" and the given value.
func Placeholder(v string) g.Node {
	return g.Attr("placeholder", v)
}

// Required returns an attribute with name "required".
func Required() g.Node {
	return g.Attr("required")
}