limestone/Switch
Provides a Limestone-themed pill-shaped toggle switch component.
Loading Live Preview
Loading Live Preview
Members
Section titled “Members ”Switch Component
Section titled “Switch   Component ”A Limestone-styled component that looks like a toggle switch.
Switch will manage its selected state via ui/Toggleableui/Toggleable unless set
directly.
Extends:
limestone/Switchlimestone/Switch.SwitchBase
Wrapped with:
limestone/Switchlimestone/Switch.SwitchDecorator
SwitchBase Component
Section titled “SwitchBase   Component ”Renders the base level DOM structure of the component.
Properties
disabled
Section titled “disabled”Disables Switch and becomes non-interactive.
Default: falsenoAnimation
Section titled “noAnimation”Disables animation.
Default: falseselected
Section titled “selected”Sets whether this control is in the 'on' or 'off' state. true for 'on', false for 'off'.
SwitchDecorator Higher-Order Component
Section titled “SwitchDecorator   Higher-Order Component ”Adds interactive functionality to Switch.
Includes:
ui/Toggleableui/Toggleable.Toggleable
Includes:
spotlight/Spottablespotlight/Spottable.Spottable