slider-button
v1.0.7
Published
A customizable slider button
Downloads
10
Maintainers
Readme
Installation
npm install slider-button
Usages
Bellow is an example of how to use slider component.
import SliderButton from "slider-button";
<SliderButton
onSuccess={successAction}
sliderText="Slide To Unlock"
sliderSuccessText="Unlocked"
containerStyle={{backgroundColor:"red"}}
sliderStyle={{backgroundColor:"yellow"}}
sliderTextStyle={{color:"black"}}
sliderCircleStyle={{backgroundColor:"yellow"}}
/>
To add customized CSS add css properties to respective style Props. Also provide a success function to be executed after completion of sliding.