features/templ-components #3
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user