tsdev-react-toggle-switch
1.0.0 • Public • Published tsdev-react-toggle-switch
npm install tsdev-react-toggle-switch
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 |
- open with browser '/storybook-static/index.html'
- open with browser '/dist/examples/index.html'
handleOnToggle(event, status) => {
console.log(event);
console.log(status)
}
Package Sidebar
Install
npm i tsdev-react-toggle-switch
Weekly Downloads