Skip to content

Commit 14e0b54

Browse files
use npm package name
1 parent 2be28aa commit 14e0b54

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ React component, on-off sliding button to keep track of a user choice or state.
99

1010
### Usage
1111

12-
import OnOff from './index.js'
12+
import OnOff from 'react-onoff-switch'
1313
ReactDOM.render(
1414
<OnOff onChange={(value) => console.log('New value is:', value)}/>,
1515
document.getElementById('app')
@@ -48,13 +48,13 @@ React component, on-off sliding button to keep track of a user choice or state.
4848
<tr>
4949
<td>buttonColor</td>
5050
<td>Stringe</td>
51-
<td>'#FFFFFF'</td>
51+
<td>'#FFFFFF' (white)</td>
5252
<td>Button color</td>
5353
</tr>
5454
<tr>
5555
<td>passiveColor</td>
5656
<td>Stringe</td>
57-
<td>'#FFFFFF'</td>
57+
<td>'#FFFFFF' (white)</td>
5858
<td>Passive background color</td>
5959
</tr>
6060
<tr>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-onoff-switch",
3-
"version": "0.0.1",
3+
"version": "0.0.2",
44
"description": "React on-off switch component",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)