🤩
Windframe Import update is finally here!

Input

Bootstrap 5 Input

Bootstrap 5 Input is a specific field that is used to collect data from the user. Mostly used in a variety of web-based forms. You have the option of using the material design version or the default bootstrap style.

Default Input Types

Create an input field in your project by using the input element. Next, we utilize the type attribute to specify the sort of data we want to gather in the input field, which can range from text, emails, passwords, and checkboxes, among other things.

Checkbox
Radio
html
<div class="contrast-input">
<input type="text" class="form-control" placeholder="Text" />
</div>
<div class="contrast-input">
<input type="email" class="form-control" placeholder="Email" />
</div>

Input Sizing

To specify how small or large you want your input field to be, give the parent div (the element holding the input field) a form class and apply the desired size code to it (sm for small, and lg for large).

html
<div class="cs-form form-sm">
<input type="email" class="form-control" />
<label>Email</label>
</div>
<div class="cs-form">
<input type="email" class="form-control" />
<label class="">Email</label>
</div>
</div>

Input with icons

To embed icons in your input fields, use the i element tag.

html
<div class="cs-form">
<i class="fa fa-user prefix"></i>
<input type="text" class="form-control" />
<label>Username</label>
</div>
<div class="cs-form">
<i class="fa fa-lock prefix"></i>
<input type="password" class="form-control" />
<label>Password</label>
</div>

Trying to build out all user interfaces and components for your website or web app from scratch can become a very tedious task. A huge reason why we created Contrast Bootstrap to help reduce the amount of time we spend doing that, so we can focus on building some other aspects of the project. Contrast Bootstrap PRO consists of a UI Kit featuring over 10000+ component variants. Together with a template of 5 admin dashboards and 23+ additional multipurpose pages template for building almost any type of website or web app. You can view a demo and learn more about Contrast by clicking here.Download the free react template

ad-banner

Contrast Bootstrap PRO was built using the most popular CSS framework Bootstrap to help build your next landing, admin SAAS, prelaunch etc project with a clean, prebuilt and well documented template and UI components.Learn more about Contrast