Your basic checkbox
A password input that allows the browser to autofill.
It's newPassword instead of just password because it gives the browser a hint on what type of password input it is.
Input.radio
[ padding 10
, spacing 20
]
{ onChange = Just ChooseLunch
, selected = Just model.lunch
, label = Input.labelAbove (text "Lunch")
, options =
[ Input.styledChoice Burrito <|
\selected ->
Element.row
[ spacing 5 ]
[ el None [] <|
if selected then
text ":D"
else
text ":("
, text "burrito"
]
, Input.option Taco (text "Taco!")
, Input.option Gyro (text "Gyro")
]
}Same as radio, but displayed as a row
Add choices to your radio and select menus.
A standard button.
The onPress message will be sent on either
onClickor when the enter key has been pressed.The message will fire exactly once per enter key press when the key is lifted.