Skip to content
Enact

limestone/Switch

Provides a Limestone-themed pill-shaped toggle switch component.

Loading Live Preview

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

Renders the base level DOM structure of the component.

Properties

Disables Switch and becomes non-interactive.

Default: false

Disables animation.

Default: false

Sets whether this control is in the 'on' or 'off' state. true for 'on', false for 'off'.

Default: false

Adds interactive functionality to Switch.

Includes: ui/Toggleableui/Toggleable.Toggleable
Includes: spotlight/Spottablespotlight/Spottable.Spottable