Text input
Options of the input component.
* maxLength is the maximum number of character allowed in this input. Set to Nothing for no limit.
* onInput is the Msg tagger for the onInput event.
* hasFocus is an optional Msg tagger for onFocus/onBlur event.
* type_ is the type of the HTML input element.
Default value for Options.
* onInput (type: String -> msg) : The onInput Msg tagger
Value:
{ maxLength = Nothing
, onInput = onInput
, hasFocus = Nothing
, type_ = "text"
}
Text input element
Example: