<cla-toggle-switch>

Toggle switch component.

Usage

Properties

PropertyRequiredDescriptionTypeDefault
blockfalseWhether to use the block style variant of the toggle.booleannull
checkedfalseIs it Checked ?booleanfalse
disabledfalseWhether the toggle is disabled.booleanfalse
invertedfalseWhether to use the inverted variant of the toggle.booleannull
largefalseWhether to use the large variant of the toggle.booleannull
namefalseThe toggle ID & namestringnull
offtextfalseOff/disabled text for inside toggle switch - must be the same length or shorter than the on/enable textstringnull
ontextfalseOn/Enabled text for inside toggle switchstringnull
valuefalseThe toggle value0null

Slots

SlotDescription
anyAllows label content

Events

EventDescriptionType
selectedEmitted when the toggle is selected.
unselectedEmitted when the toggle is unselected.