Open In App

Blaze UI Inputs

Blaze UI is a free open source UI Toolkit that provides an excellent structure for building websites quickly with a scalable and maintainable foundation. All components in Blaze UI are developed mobile-first and rely solely on native browser features, not a separate library or framework. It helps us create a scalable and responsive website quickly and efficiently with a consistent style.

In this article, we will learn about various kinds of inputs using the Blaze UI framework. Text inputs are used on the webpages to take text type input from the uses.



Blaze UI Input types:

<input class=”c-field” placeholder=”…” type=”text” />



Error:

<input class=”c-field c-field–error” placeholder=”…” type=”text”> 

No Error: 

<input class=”c-field c-field–success” placeholder=”…” type=”text”>

Disabled:

<input class=”c-field” disabled placeholder=”disabled” type=”text”>

<div class=”o-field o-field–icon-left”>

    <i class=”far fa-calendar-alt c-icon”></i>

    <input class=”c-field” type=”text”>

</div>

<input class=”c-field input-size-class” placeholder=”… ” type=”text”>

 Input Groups:

Example 1: In the following example we have created the input with colored input.




<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport"
    content="width=device-width, initial-scale=1.0">
    <title>Blaze UI - Text Input</title>
    <link rel="stylesheet" href=
    <style>
        body {
            font-family: sans-serif;
        }
    </style>
</head>
<body>
    <div class="u-centered">
        <h2 style="color: green;">GeeksforGeeks</h2>
        <h3>Text Input - Blaze UI</h3>
    </div>
    <div class="u-window-box-super">
        <p><b>Text Input</b></p>
        <input type="text" class="c-field"
            placeholder="Text Input">
            <p><b>Color input(Error)</b></p>
        <input class="c-field c-field--error" 
               placeholder=".c-field--error" type="text">
        <p><b>Color input(No Error)</b></p>
  
        <input class="c-field c-field--success" 
               placeholder=".c-field--success" type="text">
    </div>
</body>
</html>

Output:

Example 2: In the following example, we have created the input using the small and large fields.




<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport"
    content="width=device-width, initial-scale=1.0">
    <title>Blaze UI - Text Input</title>
    <link rel="stylesheet" href=
    <style>
        body {
            font-family: sans-serif;
        }
    </style>
</head>
<body>
    <div class="u-centered">
        <h2 style="color: green;">GeeksforGeeks</h2>
        <h3>Text Input - Blaze UI</h3>
    </div>
    <h3><b>x-small</b></h3>
    <input class="c-field u-xsmall" 
           placeholder=".u-xsmall" type="text">
    <h3><b>small</b></h3>
    <input class="c-field u-small" 
           placeholder=".u-small" type="text">
    <h3><b>large</b></h3>
    <input class="c-field u-medium"
           placeholder=".u-medium" type="text">  
</body>
</html>

Output:

 

Reference: https://www.blazeui.com/components/inputs/ 


Article Tags :