bentatum / better-react-spinkit

A collection of loading indicators for React
http://better-react-spinkit.benjamintatum.com/
ISC License
185 stars 25 forks source link

Idea: Possibility for additional styles #25

Open Lelith opened 6 years ago

Lelith commented 6 years ago

Hey everyone,

i am playing around with the FoldingCube spinner and was wondering if it would be possible to pass some sort of style props to it like border-color.

this is the style i am trying to achieve: spinner

lovely greetings

Lelith commented 6 years ago

Hey everyone, i was playing around a little more and changed the FoldingCube component so it would accept new optional props for spacing between the cubes and a border style.

https://github.com/gridsingularity/better-react-spinkit/tree/issue_25_additional-styling

You would be able then to call the component like this:

<FoldingCube
   size={120}
   color="rgba(255,255,255,0.05)"
   spacing={6}
   borderStyle="solid 1px #35D7C6"
/>

Tell me what you think, i would then add these props for all other components too, and prepare a PR.