@fvillard/reactswitch
v0.1.5
Published
React component for switch (true/false)
Downloads
3
Readme
ReactSwitch
Usage
Import
import Switch from '@fvillard/reactswitch'
Declaration
<Switch
/>
Default props
|Props |Description |Default value |className
|----------------|-------------------------------------------------------|-----------------------------|
|id* |string
id used for callback value | |
|className |string
Additional className for main div | |
|valueClassName |string
Additional className for value | |
|value |string
|false |
|disabled |boolean
disible button |false |
|onChange |function
trigger when clicked |function(id, value, error) |