mind-gym/elements/3.1.0

NOTE: the latest version is 5.4.2

MG.Input

Input fields

{ onChange : String -> msg
, onEnter : msg
, value : String
, errorStr : Maybe String
, onSubmit : Maybe msg
, isFocused : Bool
, viewport : Viewport
}
-> Element msg

Common email field with animated placeholder

{ value : ( Char, String )
, enableMsg : msg
, viewport : Viewport
, isFocused : Bool
}
-> Element msg

An element that looks like an input field, but is disabled and contains a button to change the value. For use when a user has already entered their email address. value is a (Char, String) to ensure that this element can not be created with an empty value.

{ onChange : String -> msg
, value : String
, showValue : Bool
, togglePasswordVisibility : Bool -> msg
, viewport : Viewport
, onSubmit : Maybe msg
, isFocused : Bool
}
-> Element msg

Common email field with animated placeholder and show/hide button.

Controls

primaryButton : ButtonParams msg -> Element msg

Common primary button

secondaryButton : ButtonParams msg -> Element msg

Common secondary button