✨A super simple way to map props to styles with Styled Components ⚠️ See README.md
prop
parameter in mapToTheme
(Thanks to @mmartinsky - https://github.com/scf4/styled-map/pull/19)styled-map
now looks for a "default" key if there are no matches. Otherwise it will use the last item in the map as in previous versions.<Button type="primary" />
. You can use styled-map
this way by providing a string as the first argument. E.g., styledMap('type', { ... })
.