Skip to content

Commit 136686c

Browse files
add jpg and demo
1 parent 14e0b54 commit 136686c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,12 @@
22
# OnOff switch button
33

44
React component, on-off sliding button to keep track of a user choice or state.
5+
6+
![React on off switch button](https://snag.gy/j1rx9d.jpg)
57

68
npm install react-onoff-switch
79

10+
811
## API
912

1013
### Usage
@@ -14,6 +17,10 @@ React component, on-off sliding button to keep track of a user choice or state.
1417
<OnOff onChange={(value) => console.log('New value is:', value)}/>,
1518
document.getElementById('app')
1619
);
20+
21+
### Demo
22+
23+
Simple [demo example here](https://rawgit.com/SergioCrisostomo/react-onoff-switch/master/demo.html).
1724

1825
### props
1926

0 commit comments

Comments
 (0)