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

A draggable toggle-switch component for React. Check out the demo at:

Results 36 react-switch issues
Sort by recently updated
recently updated
newest added

Hi, I need to disable the drag feature on the switch. Is there any way to achieve this? Thank you in advance.

When I try to change the handleDiameter prop, it doesn't have any affect on the handle size. While the width and height props does update the width and height of...

Allows colors to be specified in #rrggbbaa format as well as the currently-supported formats.

Local state update cannot be blocked while dragging. Case: If switch update depend on some conditions and conditions not suitable for update switch state, state update should not be allowed...

additional visual customization options...nothing that would affect default use

If you click on the switch and disable it immediately through a state update, it should still animate to the on/off positions while disabled. Instead, there is a white flash...

I needed the ability to disable the drag events so switch would be active only on click.

Just added correct behavior if height more than weight, it does not change interfaces.

Hi, Can you check HTML input's order like that. ![image](https://user-images.githubusercontent.com/37294916/77044274-cacc0c80-69c7-11ea-89b0-55cfcdf6cc79.png) It will be better, as I could properly use CSS tidle (~) selector to control handle. Something like that: ```...

Allow offColor, onColor, offHandleColor and onHandleColor to accept css variables, not only hex-colors. In our project we use css vars to handle themes and we use them to customize components....