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
, andradiusUnit
. Thesize
,height
,width
, andradius
props now acceptsnumber
andstring
.- 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
- If value is number, default to
margin
prop now works the same way as other length props. Can acceptnumber
andstring
Minor Changes
css
prop default is now""
. No functionality change here.- fix margin prop functionality on
FadeLoader
andRotateLoader
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.