Helpers for building components with the Elm builder pattern.
These functions make it easier to conditionally apply configuration when constructing UI components.
Apply a builder function only if a condition is True.
If the condition is False, the builder is skipped.
Input.new "username" {...}
|> BuilderUtil.withConditionalBuilder (Input.withLeftChild iconView) shouldShowLeftIcon
|> Input.view
Apply a builder function if there is a
Just value. If the value isNothing, the builder is skipped.