Skip to content
This repository has been archived by the owner on Jun 7, 2024. It is now read-only.

2.0.0

Compare
Choose a tag to compare
@scf4 scf4 released this 02 Jul 20:00
· 88 commits to master since this release

[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', { ... }).