Styled Map Versions Save

✨A super simple way to map props to styles with Styled Components ⚠️ See README.md

3.3.0

5 years ago

[3.3.0] - 2019-05-15

Added

Changed

  • Updated all dependencies

3.2.0

5 years ago

[3.2.0-rc.1] - 2018-10-18

Added

  • Added basic TypeScript typings

master

5 years ago

[3.1.0] - 2018-10-13

Added

  • Added support for nested object properties in mapToTheme (Thanks to #5)

Changed

  • Smaller bundle size (~500b)

2.0.0

6 years ago

[2.0.0] - 2017-07-02

Changed

  • 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.

Added

  • Sometimes you want to use the value of a prop instead of its name, like <Button type="primary" />. You can use styled-map this way by providing a string as the first argument. E.g., styledMap('type', { ... }).