Closed titse closed 6 years ago
What exactly do you want to style? There is a small example for the onClick in the readme. I will try to commit a couple of examples asap.
If I come up with any more use cases, I will post here.
I added a folder, "examples", I threw a couple of comments there. Regarding the styles, the component adds a prefix to the classnames you pass in the offstyle and the onstyle props with "btn". So if you would create a custom class 'off_style' you would need to add the prefix 'btn-' to the name so it would be 'btn-off_style'. Yeah, this is begging for a more elegant solution, I know..
Okay! I shall take a look! Thank you!
Would it be possible you push fix#22 to npm? I close out this issue when Issue#22 has been completed
Nice, I published, hope it works.
Thanks!
Please include more example for this React component. For example, I would like to know how would I style my toggle button and add onClick handler function.