npm react-spinners 0.7.0
Simplify API by removing unit props

latest releases: 0.13.8, 0.13.7, 0.13.6...
4 years ago

The component API has been simplified. The length prop can now accept number or string.

Major Changes

  • all unit props are deprecated, including sizeUnit, heightUnit, widthUnit, and radiusUnit. The size, height, width, and radius props now accepts number and string.
    • If value is number, default to px
    • If value is string with valid css unit, return the input value
    • If value is string with invalid css unit, output warning console log and default to px
  • margin prop now works the same way as other length props. Can accept number and string

Minor Changes

  • css prop default is now "". No functionality change here.
  • fix margin prop functionality on FadeLoader and RotateLoader so it actually expands the spacing between the elements.
  • update the README color prop section to include a list of available color words accepted.
  • clean up README formatting using the prettier plugin
  • add yarn installation instruction to the README.

Don't miss a new react-spinners release

NewReleases is sending notifications on new releases.