Semantic-UI Input Loading State
Last Updated :
08 Mar, 2022
Semantic UI is a framework that is used to build a great user interface. It is an open-source framework that uses CSS and jQuery. It is the same as a bootstrap for use and has great different elements to use to make your website look more amazing.
Semantic-UI Input class is used to create a basic input User Interface. The Semantic-UI Input Loading State is used to display a loading icon into the input field that represents currently loading form data.
Semantic-UI Input Loading State Used Class:
- loading: This class is used to create a loading effect on the form element.
Syntax:
<div class="ui icon input loading">
...
</div>
Example 1: In this example, we will describe the use of Semantic-UI Input Loading State.
HTML
<!DOCTYPE html>
< html >
< head >
< title >
Semantic-UI Input Loading State
</ title >
< link rel = "stylesheet"
href =
</ head >
< body >
< div class = "ui center aligned container" >
< h2 style = "color:green" >
GeeksforGeeks
</ h2 >
< h3 >Semantic-UI Input Loading State</ h3 >
< div class = "ui left icon input loading" >
< input type = "text"
placeholder = "User name" >
< i class = "user icon" ></ i >
</ div >
< br >< br >
< div class = "ui left icon input loading" >
< input type = "password"
placeholder = "Password" >
< i class = "eye icon" ></ i >
</ div >
</ div >
</ body >
</ html >
|
Output:
Semantic-UI Input Loading State
Example 2: In this example, we will describe the use of Semantic-UI Input Loading State.
HTML
<!DOCTYPE html>
< html >
< head >
< title >
Semantic-UI Input Loading State
</ title >
< link rel = "stylesheet"
href =
</ head >
< body >
< div class = "ui center aligned container" >
< h2 style = "color:green" >
GeeksforGeeks
</ h2 >
< h3 >Semantic-UI Input Loading State</ h3 >
< div class = "ui input loading icon focus" >
< input type = "text"
placeholder = "User name" >
< i class = "user icon" ></ i >
</ div >
< br >< br >
< div class = "ui icon loading input" >
< input type = "email"
placeholder = "Email Id" >
< i class = "search icon" ></ i >
</ div >
< br >< br >
< div class = "ui icon loading input" >
< input type = "password"
placeholder = "Password" >
< i class = "eye icon" ></ i >
</ div >
</ div >
</ body >
</ html >
|
Output:
Semantic-UI Input Loading State
Reference: https://semantic-ui.com/elements/input.html#loading
Share your thoughts in the comments
Please Login to comment...