Switch
Import
import { Switch } from '@resultadosdigitais/tangram-components'
Properties
checked
defaultChecked
disabled
labelStart
hideLabel
id
label
value
onChange
Type | func |
---|---|
Param | newState boolean - The new state about if is checked. |
Description
Callback fired when the Switch
changes.
onFocus
Type | func |
---|---|
Param | event React.SyntheticEvent - The event source of the callback. |
Description
Callback fired when the Switch
is focused.
onBlur
Type | func |
---|---|
Param | event React.SyntheticEvent - The event source of the callback. |
Description
Callback fired when the input is blurred.