Closed mgrubinger closed 5 years ago
Hi,
I like that look for the component, but I have some concerns about the implementation.
Overall I feel like this adds more overhead than it's worth.
Hi!
Thanks for your answer and explanation. I understand your point, and I realized I can do most of this using css anyway. :)
Hi!
Thanks for creating this cool react switch!
I was missing the possibility to create an "outline"-style switch using the available props. Like this:
I added two props to make this possible:
backgroundBorderStyle
: define the style of the border of the background, like2px solid #000
( the color is not really necessary, as it will use the colors fromonColor
/offColor
)disableBackground
: set this to true to get a transparent background for the switch.I also updated the README.md to reflect those two new props.
Let me know what you thing or if anything is missing.
Thanks, -Martin