1.0.0 • Published 7 years ago
tsdev-react-toggle-switch v1.0.0
tsdev-react-toggle-switch
Installation
npm install tsdev-react-toggle-switchProperties
| 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)
}1.0.0
7 years ago