mind-gym / elements / MG.Input

Input fields

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

Common email field with animated placeholder

disabledEmail : { value : ( Char, String ), enableMsg : msg, viewport : MG.Viewport.Viewport, isFocused : Basics.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.

newPassword : { note : Maybe String } -> PasswordFieldParams msg -> Element msg

New password field with animated placeholder with optional note below the input field.

currentPassword : PasswordFieldParams msg -> Element msg

Current password field with animated placeholder

Controls

primaryButton : ButtonParams msg -> Element msg

Common primary button

secondaryButton : ButtonParams msg -> Element msg

Common secondary button