slider-button

1.0.7 • Public • Published

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.

Package Sidebar

Install

npm i slider-button

Weekly Downloads

8

Version

1.0.7

License

ISC

Unpacked Size

11.2 kB

Total Files

8

Last publish

Collaborators

  • gaurav_pawar