limestone/SwitchItem
Provides Limestone-themed item component and interactive toggleable switch.
Loading Live Preview
Loading Live Preview
Members
Section titled “Members ”SwitchItem Component
Section titled “SwitchItem   Component ”A Limestone-styled item with a switch component.
SwitchItem will manage its selected state via ui/Toggleableui/Toggleable unless set
directly.
Extends:
limestone/SwitchItemlimestone/SwitchItem.SwitchItemBase
Wrapped with:
limestone/SwitchItemlimestone/SwitchItem.SwitchItemDecorator
SwitchItemBase Component
Section titled “SwitchItemBase   Component ”Renders an item with a limestone/Switchlimestone/Switch.
Extends:
limestone/Itemlimestone/Item.Item
Properties
Customizes the component by mapping the supplied collection of CSS class names to the corresponding internal elements and states of this component.
The following classes are supported:
switchItem- The root class name
selected
Section titled “selected”If true the switch will be selected.
Default: falseslotAfter
Section titled “slotAfter”Nodes to be inserted after children and before the switch.
SwitchItemDecorator Higher-Order Component
Section titled “SwitchItemDecorator   Higher-Order Component ”Adds interactive functionality to SwitchItem.
Includes:
ui/Toggleableui/Toggleable.Toggleable