Toggle
A switch indicating ON or OFF states.
Attributes
attribute: | type: | required? | default: | description: |
---|---|---|---|---|
name | string | no | Name of the toggle element (hidden checkbox input) |
|
active | boolean | no |
false
|
Is toggle active? |
disabled | boolean | no |
false
|
Is toggle disabled? |
Examples
<dl-toggle name="toggle[]"></dl-toggle>
<dl-toggle name="toggle[]" active></dl-toggle>
<dl-toggle name="toggle[]" disabled></dl-toggle>