Input group

Easily extend form controls by adding text, buttons, or button groups on either side of textual inputs, custom selects, and custom file inputs.

Input group on Bootstrap
Basic example

Place one add-on or button on either side of an input. You may also place one on both sides of an input. Remember to place label's outside the input group.

$ .00
With textarea
<div class="input-group mb-3"><span class="input-group-text" id="basic-addon1">@</span>
  <input class="form-control" type="text" placeholder="Username" aria-label="Username" aria-describedby="basic-addon1" />
<div class="input-group mb-3">
  <input class="form-control" type="text" placeholder="Recipient's username" aria-label="Recipient's username" aria-describedby="basic-addon2" /><span class="input-group-text" id="basic-addon2"></span>
<label class="form-label" for="basic-url">Your vanity URL</label>
<div class="input-group mb-3"><span class="input-group-text" id="basic-addon3"></span>
  <input class="form-control" id="basic-url" type="text" aria-describedby="basic-addon3" />
<div class="input-group mb-3"><span class="input-group-text">$</span>
  <input class="form-control" type="text" aria-label="Amount (to the nearest dollar)" /><span class="input-group-text">.00</span>
<div class="input-group"><span class="input-group-text">With textarea</span>
  <textarea class="form-control" aria-label="With textarea"></textarea>

Input groups wrap by default via flex-wrap: wrap in order to accommodate custom form field validation within an input group. You may disable this with .flex-nowrap

<div class="input-group flex-nowrap"><span class="input-group-text" id="addon-wrapping">@</span>
  <input class="form-control" type="text" placeholder="Username" aria-label="Username" aria-describedby="addon-wrapping" />

Add the relative form sizing classes to the .input-group itself and contents within will automatically resize—no need for repeating the form control size classes on each element.

<div class="input-group input-group-sm mb-3"><span class="input-group-text" id="inputGroup-sizing-sm">Small</span>
  <input class="form-control" type="text" aria-label="Sizing example input" aria-describedby="inputGroup-sizing-sm" />
<div class="input-group mb-3"><span class="input-group-text" id="inputGroup-sizing-default">Default</span>
  <input class="form-control" type="text" aria-label="Sizing example input" aria-describedby="inputGroup-sizing-default" />
<div class="input-group input-group-lg"><span class="input-group-text" id="inputGroup-sizing-lg">Large</span>
  <input class="form-control" type="text" aria-label="Sizing example input" aria-describedby="inputGroup-sizing-lg" />
Checkboxes and Radios

Place any checkbox or radio option within an input group’s addon instead of text.

<div class="input-group mb-3">
  <div class="input-group-text">
    <input class="form-check-input" type="checkbox" value="" aria-label="Checkbox for following text input" />
  <input class="form-control" type="text" aria-label="Text input with checkbox" />
<div class="input-group">
  <div class="input-group-text">
    <input class="form-check-input" type="radio" value="" aria-label="Radio button for following text input" />
  <input class="form-control" type="text" aria-label="Text input with radio button" />
Multiple inputs

While multiple inputs are supported visually, validation styles are only available for input groups with a single input.

First and last name
<div class="input-group"><span class="input-group-text">First and last name</span>
  <input class="form-control" type="text" aria-label="First name" />
  <input class="form-control" type="text" aria-label="Last name" />
Multiple Addons

Multiple add-ons are supported and can be mixed with checkbox and radio input versions.

<div class="input-group mb-3"><span class="input-group-text">$</span><span class="input-group-text">0.00</span>
  <input class="form-control" type="text" aria-label="Dollar amount (with dot and two decimal places)" />
<div class="input-group">
  <input class="form-control" type="text" aria-label="Dollar amount (with dot and two decimal places)" /><span class="input-group-text">$</span><span class="input-group-text">0.00</span>

Thank you for creating with Falcon |
2023 © Themewagon



Set your own customized style

Color Scheme

Choose the perfect color mode for your app.

RTL Mode

Switch your language direction

RTL Documentation

Fluid Layout

Toggle container layout system

Fluid Documentation

Navigation Position

Select a suitable navigation system for your web application

Vertical Navbar Style

Switch between styles for your vertical navbar

See Documentation

Like What You See?

Get Falcon now and create beautiful dashboards with hundreds of widgets.