Toggle properties
Summary
Props table
Parameter |
Type |
Default |
---|---|---|
boolean |
/ |
|
JSX.Element |
/ |
|
JSX.Element |
/ |
|
JSX.Element |
/ |
|
(newValue: boolean) => void |
() => {} |
Props list
value
Type |
Default |
---|---|
boolean |
/ |
toggle status (true - on/false - off)
onIcon
Type |
Default |
---|---|
JSX.Element |
/ |
custom toggle on
icon (value
=== true
)
icon
Type |
Default |
---|---|
JSX.Element |
/ |
custom toggle icon, used as a default icon
offIcon
Type |
Default |
---|---|
JSX.Element |
/ |
custom toggle off
icon (value
=== false
)
onChange
Type |
Default |
---|---|
(newValue: boolean) => void |
() => {} |
Callback triggered when Toggle component input value is changed by the user