Helpers on top of Html.Styled to show/hide things
Maybe add an attribute.
button
[ maybeAttribute onClick model.myMaybeMsg ]
[ text "Clickety Click" ]Only display if True.
viewIf model.isShown myViewFunctionOnly display if True.
divIf model.isShown
[ id "potato" ]
[ text "Hello" ]Maybe display a view.
maybeView view model.myMaybe
Optionally add an attribute.