Swap allows you to toggle the visibility of two elements using a checkbox or a class name.
Class name | Type | |
---|---|---|
swap | Component | Container element |
swap-on | Component | The child element that should be visible when checkbox is checked or when swap is active |
swap-off | Component | The child element that should be visible when checkbox is not checked or when swap is not active |
swap-indeterminate | Component | The child element that should be visible when checkbox is indeterminate |
swap-active | Modifier | Activates the swap (no need for checkbox) |
swap-rotate | Modifier | Adds rotate effect to swap |
swap-flip | Modifier | Adds flip effect to swap |