xtablo-source/go-backend/internal/web/ui/input.templ
2026-05-09 20:18:24 +02:00

22 lines
410 B
Text

package ui
type InputProps struct {
ID string
Name string
Value string
Placeholder string
Type string
Attrs templ.Attributes
}
templ Input(props InputProps) {
<input
id={ inputID(props.ID, props.Name) }
type={ inputType(props.Type) }
name={ props.Name }
value={ props.Value }
placeholder={ props.Placeholder }
class="ui-input"
{ props.Attrs... }
/>
}