moonstone/ Switch
Contains the declaration for the moonstone/Switch.Switch component.
import Switch from '@enact/moonstone/Switch';
Members
SwitchComponent
moonstone/Switch.Switch represents a Boolean state, and looks like a switch in either the 'on' or 'off' positions.
import Switch from '@enact/moonstone/Switch';
Properties
- animated
Sets whether this control is animated during change.
Default: true- disabled
Sets whether this control is disabled, and non-interactive
Default: false- onToggle
The handler to run when the component is toggled.
- selected
Sets whether this control is in the "on" or "off" state.
true
for on,false
for "off".Default: false
Boolean
Boolean
Function
Boolean
ArrayBooleanFunctionModuleNumberObjectString