使用 Swap,你可以使用复选框或类名来切换两个元素的显示。
| 类名 | 类型 | |
|---|---|---|
| swap | 组件类 | Container element |
| swap-on | 组件类 | The child element that should be visible when checkbox is checked or when swap is active |
| swap-off | 组件类 | The child element that should be visible when checkbox is not checked or when swap is not active |
| swap-indeterminate | 组件类 | The child element that should be visible when checkbox is indeterminate |
| swap-active | 装饰类 | Activates the swap (no need for checkbox) |
| swap-rotate | 装饰类 | Adds rotate effect to swap |
| swap-flip | 装饰类 | Adds flip effect to swap |
