Open kuon opened 6 years ago
It would be great to have conditional helpers for attributes, like Element.when.
Element.when
Usage:
row style [ when config.spaced (spacing 20) ] []
Maybe use another name to avoid conflict with Element.when.
My current workaround:
whenAttr: Bool -> Element.Attribute variation msg -> Element.Attribute variation msg whenAttr val attr = if val then attr else attribute "data-none" ""
It would be great to have conditional helpers for attributes, like
Element.when
.Usage:
Maybe use another name to avoid conflict with
Element.when
.My current workaround: