<uimc-toggle-switch>
</uimc-toggle-switch>
| Attribute | Description | Values | Default |
|---|
| size | Choose the appearance size of the element | normal, large | normal |
| checked | Reflects the current state of the switch | – | – |
| theme | Set the color scheme of the component | light, dark | light |
| Callback | Argument | Description |
|---|
| onChange | Object | Callback function that gets triggered when the togglebutton is clicked |
| Slot | Slotted content |
|---|
| default | Inner text is shown as label |
Toggle Switch w/o label
<uimc-toggle-switch>
</uimc-toggle-switch>
Toggle Switch w/ label
Label
<uimc-toggle-switch>
Label
</uimc-toggle-switch>
Large Toggle Switch
Label
<uimc-toggle-switch size="large">
Label
</uimc-toggle-switch>
Dark theme
Label
<uimc-toggle-switch theme="dark">
Label
</uimc-toggle-switch>