diff --git a/internal/view/web/component/input_control.go b/internal/view/web/component/input_control.go index f564efa..74a8f5d 100644 --- a/internal/view/web/component/input_control.go +++ b/internal/view/web/component/input_control.go @@ -8,14 +8,15 @@ import ( ) type InputControlParams struct { - Name string - Label string - Placeholder string - Required bool - Type inputType - HelpText string - Color color - Children []gomponents.Node + Name string + Label string + Placeholder string + Required bool + Type inputType + HelpText string + Color color + AutoComplete string + Children []gomponents.Node } func InputControl(params InputControlParams) gomponents.Node { @@ -51,6 +52,10 @@ func InputControl(params InputControlParams) gomponents.Node { params.Required, html.Required(), ), + gomponents.If( + params.AutoComplete != "", + html.AutoComplete(params.AutoComplete), + ), gomponents.Group(params.Children), ), gomponents.If(