Skip to content

Commit 876522b

Browse files
committed
added icon component support release v1.2.11
1 parent f7ee6b0 commit 876522b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,14 @@ const MyComponent: React.FC = () => {
6161
return (
6262
<div>
6363
<h2>Toggle Switch Example</h2>
64-
<ToggleSwitch checked={isChecked} onColor={"#0f0"} offColor={"#0ff"} handleOnColor={"orange"} handleOffColor={"red"} onToggle={handleChange} />
64+
<ToggleSwitch checked={isChecked} onColor={"#0f0"} offColor={"#0ff"} onToggle={handleChange} />
6565
</div>
6666
);
6767
};
6868

6969

7070
```
71-
**Note**: Except v1.0.8 all other version need to import below file in App.jsx/tsx or main.jsx/tsx for styles to work.
71+
**Note**: Except v1.0.8,v1.2.11 all other version need to import below file in App.jsx/tsx or main.jsx/tsx for styles to work.
7272

7373
```js
7474
import 'reactjs-toggleswitch/dist/cjs/index.css';
@@ -93,8 +93,8 @@ The `ToggleSwitch` component accepts the following props:
9393
| `offColor` | `string` | specifies background color change when switch is unchecked |
9494
| `disable` | `boolean` | specifies for disabling/enabling the toggle. |
9595
| `ariaLabel` | `string`| used to provide a label or description for an element. |
96-
|`handleOnColor` |`string` | specifies thumb color change when switch is checked |
97-
| `handleOffColor` | `string` |specifies thumb color change when switch is unchecked |
96+
|`children` |`component` | specifies thumb icon use any component like font-awesome |
97+
9898

9999
## Author
100100
[Subramanya KS](https://github.com/SubramanyaKS)

0 commit comments

Comments
 (0)