How to add the text "ON" and "OFF in toogle button


#1

How to add the text “ON” and "OFF in toogle button
Please help me out anyone
Thanks in advance


#2

The HTML

  <span id="customToggle">
    <span>Off</span>
    <ion-toggle checked="false"></ion-toggle>
    <span>On</span>
  </span>

The CSS:

#customToggle {
    display: flex;
    align-items: center;
}