react-switch
react-switch copied to clipboard
A draggable toggle-switch component for React. Check out the demo at:
A switch component with `onClick={(e) => e.stopPropagation()}` attribute: ``` e.stopPropagation()} /> ``` Nested in an accordion like component produces the following behaviour:  The onClick only appears to be passed...
Documentation states "When disabled, the switch will no longer be interactive and **its colors will be greyed out.**" But Using 7.0.0 and React 17.0.2 the following creates a green switch,...
fixed #125 1. Added the onClick prop to the Switch component. 2. It will be called if passed as a prop from parent component.
How is it possible to remove cross icon & Tick icon from toggle button.
I want to shade the onHandleColor and offHandleColor properties of the SwitchButton. Or I want to be able to give an inset box-shadow to the container. Is there any way...
I need to access **Input Event** on "onChange" function to use it with **Formik** OR, Please implement something like "onInputChange" I hope you implement it soon. Thanks in advance.
updated the old class component example to modern and mostly used functional component. I hope this small contribution will help.
Nice job. But needs to add customization styles from file styles. And not use only inline styles in the component props.
Is there a way to set the toggle animation speed to a faster speed? like `animation-duration: 0.1s`, or something like that?
@markusenglund Firstly, let me thank you for your great work, I really appreciate it ;) Anyway, I would like to kindly ask you, is it possible to (**globally?!**) share `react-switch`...