feat: add working prototype for via

This commit is contained in:
Joao Goncalves
2025-10-31 00:58:53 -01:00
parent d15af60a1d
commit eb20a2a0a9
13 changed files with 1330 additions and 0 deletions

32
h/attributes.go Normal file
View File

@@ -0,0 +1,32 @@
package h
import gh "maragu.dev/gomponents/html"
func Href(v string) H {
return gh.Href(v)
}
func Type(v string) H {
return gh.Type(v)
}
func Src(v string) H {
return gh.Src(v)
}
func ID(v string) H {
return gh.ID(v)
}
func Value(v string) H {
return gh.Value(v)
}
func Placeholder(v string) H {
return gh.Placeholder(v)
}
// Data attributes automatically have their name prefixed with "data-".
func Data(name, v string) H {
return gh.Data(name, v)
}