feat: add working prototype for via
This commit is contained in:
32
h/attributes.go
Normal file
32
h/attributes.go
Normal 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)
|
||||
}
|
||||
Reference in New Issue
Block a user