newsbot-portal/internal/views/bulma/form/input.templ

10 lines
213 B
Plaintext
Raw Normal View History

package form
templ Input(color, id, fieldType string) {
if color == "" {
<input class={ "input" } id={ id } type={ fieldType }/>
} else {
<input class={ "input", color } id={ id } type={ fieldType }/>
}
}