split TextInput to have an option for color as its own func
This commit is contained in:
parent
262cd8b897
commit
cce768dad8
@ -1,6 +1,10 @@
|
|||||||
package form
|
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 == "" {
|
if color == "" {
|
||||||
<input class={ "input" } name={ id } id={ id } type={ fieldType } placeholder={ placeholder }/>
|
<input class={ "input" } name={ id } id={ id } type={ fieldType } placeholder={ placeholder }/>
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user