features/templ-components #3
@ -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