NoRedInk/noredink-ui/4.0.0

NOTE: this package is not compatible with Elm 0.19.1

Nri.Ui.TextInput.V1

type InputType value
type alias Model value msg =
{ label : String
, isInError : Bool
, onInput : value -> msg
, placeholder : String
, value : value
, autofocus : Bool
, type_ : InputType value
}
styles : Styles Never CssClasses msg
view : Model value msg -> Html msg
withInvisibleLabel : Model value msg -> Html msg

Input types

number : InputType (Maybe Int)

An input that allows number entry

text : InputType String

An input that allows text entry