Closed andrewMacmurray closed 3 years ago
I only just thought of this after I published 1.0.0 🤦 but using a record to inject external dependencies (like for elm-ui https://package.elm-lang.org/packages/andrewMacmurray/elm-simple-animation/latest/Simple-Animated#UiOptions) could be a nice, low mental overhead pattern to use for other ones
1.0.0
elm-ui
So Simple.Animated.svg would become:
Simple.Animated.svg
animatedSvg = Simple.Animated.svg { class = Svg.Attributes.class }
I only just thought of this after I published
1.0.0
🤦 but using a record to inject external dependencies (like forelm-ui
https://package.elm-lang.org/packages/andrewMacmurray/elm-simple-animation/latest/Simple-Animated#UiOptions) could be a nice, low mental overhead pattern to use for other onesSo
Simple.Animated.svg
would become: