sandstone/ Switch
Provides a Sandstone-themed pill-shaped toggle switch component.
import Switch from '@enact/sandstone/Switch';Members
SwitchComponent
A Sandstone-styled component that looks like a toggle switch.
Switch will manage its selected state via Toggleable unless set
directly.
import Switch from '@enact/sandstone/Switch';Extends: sandstone/Switch.SwitchBase
Wrapped with: sandstone/Switch.SwitchDecorator
SwitchBaseComponent
Renders the base level DOM structure of the component.
import {SwitchBase} from '@enact/sandstone/Switch';Extends: sandstone/Icon.Icon
Properties
Disables Switch and becomes non-interactive.
Default: falseDisables animation.
Default: falseSets whether this control is in the 'on' or 'off' state.
truefor 'on',falsefor 'off'.Default: false
SwitchDecoratorHigher-Order Component
Adds interactive functionality to Switch.
import {SwitchDecorator} from '@enact/sandstone/Switch';Includes: ui/Toggleable.Toggleable
Includes: spotlight/Spottable.Spottable
ArrayBooleanFunctionModuleNumberObjectString