xtablo-source/deprecated/internal/web/ui/input.templ
Arthur Belleville 5d0c201e86
Some checks failed
backend-ci / Backend tests (pull_request) Failing after 53s
backend-ci / Backend tests (push) Failing after 1s
Some work
2026-05-23 17:26:01 +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... }
/>
}