split TextInput to have an option for color as its own func

This commit is contained in:
James Tombleson 2024-07-13 10:36:15 -07:00
parent 262cd8b897
commit cce768dad8

View File

@ -1,6 +1,10 @@
package form
templ TextInput(color, id, fieldType, placeholder string) {
templ TextInput(id, fieldType, placeholder string) {
<input class={ "input" } name={ id } id={ id } type={ fieldType } placeholder={ placeholder }/>
}
templ TextInputColor(color, id, fieldType, placeholder string) {
if color == "" {
<input class={ "input" } name={ id } id={ id } type={ fieldType } placeholder={ placeholder }/>
} else {