When using HTML forms with an onSubmit handler we also need a button element with "type" set as "submit".
We shouldn't handle the onClick of this button directly otherwise we will two events when submitting.
H.form
[]
[ -- ...some fields
, W.Button.viewSubmit []
[ H.text "Submit this form!" ]
]Useful for HTML/CSS-based triggers.
W.Modal.viewToggle "toggle-on-click"
[ W.Button.viewDummy []
[ H.text "Open or close modal" ]
]By default, neutral color is used.