Font Awesome Toggle On Icon - (Switch, Button)

In Font Awesome, the toggle icon is represented by the class 'fa-toggle-on.' You can use it to create a toggle switch or button.

Fontawesome Version 4.X

toggle on

<i class='fa fa-toggle-on'></i>

toggle on

<i class='fa fa-toggle-on' style='color: white'></i>

toggle on

<i class='fa fa-toggle-on' style='color: red'></i>

toggle on

<i class='fa fa-toggle-on' style='color: blue'></i>

toggle on

<i class='fa fa-toggle-on' style='color: #f3da35'></i>
Try it Yourself


Fontawesome Version 5.X

toggle on

<i class='fas fa-toggle-on'></i>

toggle on

<i class='fas fa-toggle-on' style='color: white'></i>

toggle on

<i class='fas fa-toggle-on' style='color: red'></i>

toggle on

<i class='fas fa-toggle-on' style='color: blue'></i>

toggle on

<i class='fas fa-toggle-on' style='color: #f3da35'></i>
Try it Yourself

Fontawesome Version 6.X

toggle on

Web

<i class='fa-solid fa-toggle-on'></i>

React

<FontAwesomeIcon icon="fa-solid fa-toggle-on" />

Vue

<font-awesome-icon icon="fa-solid fa-toggle-on" />

toggle on

Web

<i class='fa-solid fa-toggle-on' style='color: white'></i>

React

<FontAwesomeIcon icon="fa-solid fa-toggle-on" style={{color: 'white'}} />

Vue

<font-awesome-icon icon="fa-solid fa-toggle-on" :style="{color: 'white'}" />

toggle on

Web

<i class='fa-solid fa-toggle-on' style='color: red'></i>

React

<FontAwesomeIcon icon="fa-solid fa-toggle-on" style={{color: 'red'}} />

Vue

<font-awesome-icon icon="fa-solid fa-toggle-on" :style="{color: 'red'}" />

toggle on

Web

<i class='fa-solid fa-toggle-on' style='color: blue'></i>

React

<FontAwesomeIcon icon="fa-solid fa-toggle-on" style={{color: 'blue'}} />

Vue

<font-awesome-icon icon="fa-solid fa-toggle-on" :style="{color: 'blue'}" />

toggle on

Web

<i class='fa-solid fa-toggle-on' style='color: #f3da35'></i>

React

<FontAwesomeIcon icon="fa-solid fa-toggle-on" style={{color: '#f3da35'}} />

Vue

<font-awesome-icon icon="fa-solid fa-toggle-on" :style="{color: '#f3da35'}" />
Try it Yourself

How to add Font Awesome toggle on Icon ?

Font Awesome Icon fa fa toggle on Icon can be added to any web page simply as below. You can integrate Icon in web pages by just adding following below syntax & icon code.

Icon -
<i class='fa fa-toggle-on'></i>
Icon Code -
fa fa-toggle-on

HTML Code

Get complete html code for icon toggle on

                    
                    <!DOCTYPE html>
                    <html>
                        <head>
                        <title>Page Title</title>
                        <link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css'>
                       </head>
                        <body>
                        <i class='fa fa-toggle-on'></i>
                        </body>
                    </html>                    

Tags

switch , button,toggle, checkbox,Controls

Change Font Awesome Icon Toggle on Color

Sometimes we need icons in different color, as we suggested by adding css style we can change color. Here we have created one example to change color of icons with css classes.


    <style>
.blue-color {
color:blue;
}
.green-color {
color:green;
}
.teal-color {
color:teal;
}
.yellow-color {
color:yellow;
}
.red-color {
color:red;
}
</style>
<i class='fa fa-toggle-on blue-color'></i> <i class='fa fa-toggle-on green-color'></i> <i class='fa fa-toggle-on teal-color'></i> <i class='fa fa-toggle-on yellow-color'></i> <i class='fa fa-toggle-on red-color'></i>

Output of the above example will be as below-


Note- Make Sure You have included the below Font Awesome file in header-
            
<link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css'>            
            

Advertisements



Advertisements



Looking For More Icons?