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.
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.