ronanyeah / helpers / Helpers.View

Use at will.

when : Basics.Bool -> Element msg -> Element msg

Conditional display.

whenJust : (a -> Element msg) -> Maybe a -> Element msg

Maybe display.

cappedHeight : Basics.Int -> Element.Attribute msg

Restrict height.

cappedWidth : Basics.Int -> Element.Attribute msg

Restrict width.

style : String -> String -> Element.Attribute msg

Inline style.

whenAttr : Basics.Bool -> Element.Attribute msg -> Element.Attribute msg

Conditional attribute.

dataAttr : String -> String -> Element.Attribute msg

Data attribute.

onKeydown : String -> msg -> Element.Attribute msg

Listener.