浏览代码

switch icon docs

codecalm 4 年之前
父节点
当前提交
d4ed037322
共有 1 个文件被更改,包括 6 次插入1 次删除
  1. 6 1
      src/pages/_docs/switch-icon.md

+ 6 - 1
src/pages/_docs/switch-icon.md

@@ -1,17 +1,22 @@
 ---
 title: Switch icon
 menu: docs.components.switch-icon
+description: The Switch Icon component is used to create a transition between two icons. You can use any icon, both line and filled version.
 ---
 
 ## Default markup
 
+To replace the icons, all should add `active` class to the `switch-icon` component.
+
 {% capture code %}
-{% include ui/switch-icon.html icon="circle" icon-b-class="icon-filled" icon-b-color="blue"  %}
+{% include ui/switch-icon.html icon="circle" icon-b="square" icon-b-color="blue"  %}
 {% endcapture %}
 {% include example.html code=code wrapper="d-flex space-x-2" %}
 
 ## Switch animations
 
+You can also add a fancy animation to add variety to your button. See demo below:
+
 {% capture code %}
 {% include ui/switch-icon.html icon="circle" icon-b-class="icon-filled" icon-b-color="blue"  %}
 {% include ui/switch-icon.html variant="fade" icon-b-class="icon-filled"  %}