tsdev-react-toggle-switch
v1.0.0
Published
ReactJS component
Downloads
2
Maintainers
Readme
tsdev-react-toggle-switch
Installation
npm install tsdev-react-toggle-switch
Properties
| name | type | default | required | |------|------|---------|----------| | disabled | bool | false | no | | handleOnToggle | func | noop | no | | id | string | 'tsdev-toggle-switch-{uuid}' | no | | labelOff | bool | true | no | | labelOn | bool | true | no | | labelMaxWidth | number | 130 | no | | on | bool | false | no | | showIcons | bool | false | no | | showLabels | bool | true | no | | subClass | string | '' | no | | width | number | 50 | no |
Static Storybook
- open with browser '/storybook-static/index.html'
Examples
- open with browser '/dist/examples/index.html'
Styles
- '/dist/styles.css'
Functions
handleOnToggle(event, status) => {
console.log(event);
console.log(status)
}