Easy Tutorial
❮ Ionic Ion Refresher Ionic Ion Spinner ❯

Ionic Toggle

The toggle switch is similar to the HTML checkbox tag, but it is easier to use on mobile devices.

The toggle switch can use the toggle-assertive to specify the color.

<label class="toggle">
   <input type="checkbox">
   <div class="track">
     <div class="handle"></div>
   </div>
</label>

This example has a list of multiple toggle switches. Note that the item-toggle class needs to be added after the item class for each option.

<ul class="list">

  <li class="item item-toggle">
     HTML5
     <label class="toggle toggle-assertive">
       <input type="checkbox">
       <div class="track">
         <div class="handle"></div>
       </div>
     </label>
  </li>

  ...

</ul>

Try it »

The running effect is as follows:

❮ Ionic Ion Refresher Ionic Ion Spinner ❯