<cla-toggle-switch>
Toggle switch component.
Usage
Properties
Property | Required | Description | Type | Default |
---|---|---|---|---|
block | false | Whether to use the block style variant of the toggle. | boolean | null |
checked | false | Is it Checked ? | boolean | false |
disabled | false | Whether the toggle is disabled. | boolean | false |
inverted | false | Whether to use the inverted variant of the toggle. | boolean | null |
large | false | Whether to use the large variant of the toggle. | boolean | null |
name | false | The toggle ID & name | string | null |
offtext | false | Off/disabled text for inside toggle switch - must be the same length or shorter than the on/enable text | string | null |
ontext | false | On/Enabled text for inside toggle switch | string | null |
value | false | The toggle value | 0 | null |
Slots
Slot | Description |
---|---|
any | Allows label content |
Events
Event | Description | Type |
---|---|---|
selected | Emitted when the toggle is selected. |
|
unselected | Emitted when the toggle is unselected. |
|