Toggle Switch Stable
A Toggle Switch is similar to a Checkbox for managing settings, for example, in forms or filters. They are used for on/off selection.
<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 | – | – |
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
<uimc-toggle-switch>
Label
</uimc-toggle-switch>
Large Toggle Switch
<uimc-toggle-switch size="large">
Label
</uimc-toggle-switch>