1.0.7 • Published 2 years ago
slider-button v1.0.7
Installation
npm install slider-buttonUsages
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.