markusenglund / react-switch

A draggable toggle-switch component for React. Check out the demo at:
https://react-switch.netlify.com/
MIT License
1.33k stars 101 forks source link

height not working #53

Closed Ahmed-Elswerky closed 4 years ago

Ahmed-Elswerky commented 5 years ago
                 <Switch
                        defaultValue={false}
                        offColor="success"
                        offText="OFF"
                        onColor="success"
                        onText="ON"
                        height={10}
                      />

the default width and height are !important so those don't work

CatalinAtun commented 4 years ago

I'm working with this and height is working!

<Switch onChange={this.handleChange} checked={checked} height={10} />

Ahmed-Elswerky commented 4 years ago

ok thanks