etaque/elm-form/4.0.0

Form.Input

Html input view helpers, wired for elm-form validation.

type alias Input e a =
FieldState e a -> List (Attribute Msg) -> Html Msg

An input renders Html from a field state and list of additional attributes. All input functions using this type alias are pre-wired with event handlers.

String
-> (String -> FieldValue)
-> FieldState e String
-> List (Attribute Msg)
-> Html Msg

Untyped input, first param is type attribute.

textInput : Input e String

Text input.

passwordInput : Input e String

Password input.

textArea : FieldState e String -> List (Attribute Msg) -> Html Msg

Textarea.

checkboxInput : FieldState e Bool -> List (Attribute Msg) -> Html Msg

Checkbox input.

List ( String, String )
-> FieldState e String
-> List (Attribute Msg)
-> Html Msg

Select input.

radioInput : String -> FieldState e String -> List (Attribute Msg) -> Html Msg

Radio input.