Bootstrap Input Group Text

Ruth Jul 09, 2026

Bootstrap, a popular front-end framework, offers a wide range of pre-built components to streamline web development. One such component is the Input Group, which helps combine form controls and add-ons in a flexible and responsive manner. Today, we're going to delve into the Bootstrap Input Group, with a particular focus on the 'text' variant.

Bootstrap Input Groups - Tutlane
Bootstrap Input Groups - Tutlane

The Input Group 'text' is a combination of an input field and an add-on, typically an icon or text, that enhances the user interface and provides context to the input field. It's a simple yet powerful tool that can significantly improve the user experience.

an email form with two different types of letters and numbers on the top right hand corner
an email form with two different types of letters and numbers on the top right hand corner

Understanding Bootstrap Input Group Text

The Input Group 'text' is a wrapper element for a label-free text input and an optional add-on. It's designed to improve the layout and alignment of form controls and add-ons, making your forms cleaner and more intuitive.

an image of a computer screen with text
an image of a computer screen with text

At its core, the Input Group 'text' consists of the '' element and the '' element for the add-on. The '

' element serves as the wrapper, applying the necessary styles and responsiveness.

Basic Structure

A Beginner's Guide to the Latest Bootstrap 5 Utilities
A Beginner's Guide to the Latest Bootstrap 5 Utilities

The basic structure of a Bootstrap Input Group 'text' is as follows:

<div class="input-group">
  <span class="input-group-text">@</span>
  <input type="text" class="form-control" placeholder="Username">
</div>

In this example, '@' is the add-on text, and 'Username' is the placeholder for the input field.

Adding Icons

Bootstrap Input Groups
Bootstrap Input Groups

Instead of text, you can use icons as add-ons. Bootstrap provides a set of glyphicons that you can use. Here's how you can add an icon to your Input Group 'text':

<div class="input-group">
  <span class="input-group-text"><i class="bi bi-person"></i></span>
  <input type="text" class="form-control" placeholder="Username">
</div>

In this case, 'bi bi-person' is the class for the user icon.

Responsive Behavior

Bootstrap 5.3 (2025) Cheat Sheet
Bootstrap 5.3 (2025) Cheat Sheet

Bootstrap Input Groups are responsive and will adjust their layout based on the screen size. By default, the add-on will be on the left side of the input field. However, you can change this behavior using the 'append' or 'prepend' classes.

For instance, to place the add-on on the right side of the input field, you can use the 'append' class:

How to Create Bootstrap 5 Navigation Header? โ€“ WebNots
How to Create Bootstrap 5 Navigation Header? โ€“ WebNots
๐Ÿ“ Create Text Input Forms and Submit Button in HTML
๐Ÿ“ Create Text Input Forms and Submit Button in HTML
some people are texting on their cell phones and one is not talking to the other
some people are texting on their cell phones and one is not talking to the other
the text field states page is displayed in this screenshote, and it appears to be filled with information
the text field states page is displayed in this screenshote, and it appears to be filled with information
an orange background with some type of text in the bottom right corner and another type of text below
an orange background with some type of text in the bottom right corner and another type of text below
BOOTSTRAP : MOST USEFUL CODES TO USE WHILE CODING
BOOTSTRAP : MOST USEFUL CODES TO USE WHILE CODING
Textarea
Textarea
an email message is shown with the same text as it appears in this screenshot
an email message is shown with the same text as it appears in this screenshot
Add remove input fields dynamically using jQuery and bootstrap
Add remove input fields dynamically using jQuery and bootstrap
the text messages are clearly visible for us to see on their screenshots, but they don't appear to be true or fake
the text messages are clearly visible for us to see on their screenshots, but they don't appear to be true or fake
Groupchat
Groupchat
the text message messages are being displayed on an iphone screen, with two people talking to each
the text message messages are being displayed on an iphone screen, with two people talking to each
BOOTSTRAP INPUT FORM (2020) | HOW TO MAKE FORM IN BOOTSTRAP
BOOTSTRAP INPUT FORM (2020) | HOW TO MAKE FORM IN BOOTSTRAP
BROO I love my gc๐Ÿ˜‚
BROO I love my gc๐Ÿ˜‚
some people are texting on their cell phones and one person is not happy about them
some people are texting on their cell phones and one person is not happy about them
the text box is highlighted in red and blue
the text box is highlighted in red and blue
two screens showing the different types of text in an open - source web page, with one being highlighted
two screens showing the different types of text in an open - source web page, with one being highlighted
Bootstrap 4 Cheat Sheet - The ultimate list of Bootstrap classes
Bootstrap 4 Cheat Sheet - The ultimate list of Bootstrap classes
pic #3 - iโ€™m always the last person on a group chat๐Ÿ˜‚ Group Text Conversation In Iphone Messages, How To Start A Group Text, Ideas For Morning Greetings, Iphone Message Thread Example, Morning Group Text Exchange, Cousin Group Chat, Group Chat Aesthetic, Group Chat Core, Group Chat Messages
pic #3 - iโ€™m always the last person on a group chat๐Ÿ˜‚ Group Text Conversation In Iphone Messages, How To Start A Group Text, Ideas For Morning Greetings, Iphone Message Thread Example, Morning Group Text Exchange, Cousin Group Chat, Group Chat Aesthetic, Group Chat Core, Group Chat Messages
two texts that are being shared to each other on their cell phones, one is telling the other they're friends
two texts that are being shared to each other on their cell phones, one is telling the other they're friends

<div class="input-group append">
  <input type="text" class="form-control" placeholder="Username">
  <span class="input-group-text">@</span>
</div>

Remember, the key to a good user experience is to provide clear and concise feedback. Input Groups 'text' can help you achieve this by providing context and enhancing the layout of your forms.

Now that you understand the Bootstrap Input Group 'text', it's time to incorporate it into your projects. Start with small, simple forms and gradually build up to more complex ones. With practice, you'll see how this component can significantly improve the user interface of your web applications.