react-toggle icon indicating copy to clipboard operation
react-toggle copied to clipboard

Styling has to be sent as props.

Open amalantony opened this issue 8 years ago • 1 comments

Since the toggle button styles are read from a global css file, it's impossible to style toggle buttons differently in different parts of an application. To fix this, custom styles will have to be accepted as props to the Toggle component. The react-component/slider library uses this approach of styling: https://github.com/react-component/slider#common-api.

amalantony avatar Nov 03 '17 14:11 amalantony

Seconded.

jkerrwilson avatar Jan 31 '18 19:01 jkerrwilson