Clear, practical technology insights BSOD Code Lookup · Windows Error Code Lookup · Wi-Fi Troubleshooting · PC Troubleshooting Checklist

Lesson 35: Input Groups in Bootstrap 5

Input groups in Bootstrap 5 give you a way to extend an input control. Here's how to use input groups in Bootstrap 5.

Table of Contents

Input groups in Bootstrap 5 give you a way to extend an input control. Here's how to use input groups in Bootstrap 5.

Input groups in Bootstrap 5 provide a simple way to extend an input control. Here's how to use input groups in Bootstrap 5 .

Input Group

A class .input-groupis a container that enhances input by adding an icon, text, or a button before or after the input field as 'help text'.

To format the help text style, use the class .input-group-text:

Sample code:

 @ @example.com 

For example:

 Bootstrap Example 

Input Group for TipsMake.com

 @ @example.com  

Input Group for TipsMake.com illustration for Lesson 35: Input Groups in Bootstrap 5

Input Group Size

Use classes .input-group-smfor small input groups and .input-group-lgfor large input groups. Sample code:

 Small Default Large 

For example:

 Bootstrap Example 

Input Group Size

English example text

Input Group Size illustration for Lesson 35: Input Groups in Bootstrap 5 (2)

Multiple Inputs and Helpers

Add more inputs and addons like in the sample code:

 Person  One Two Three 

For example:

 Bootstrap Example 

Add more inputs or addons:

 English example text TipsMake 1 TipsMake 2 TipsMake 3 

Multiple Inputs and Helpers illustration for Lesson 35: Input Groups in Bootstrap 5 (3)

Input Group with Checkbox and Radio

You can also use checkboxes or radio buttons instead of text. Here's some sample code:

 

For example:

 Bootstrap Example 

Choose the Page You Like

  

Choose the Page You Like illustration for Lesson 35: Input Groups in Bootstrap 5 (4)

Input Group Buttons

Sample code:

     

For example:

 Bootstrap Example 

Input Group Button

    

Input Group Button illustration for Lesson 35: Input Groups in Bootstrap 5 (5)

Input Group with Drop-down Button

Add a dropdown button to the input group. Note that you don't need a 'wrapper' .dropdownas usual.

Sample code:

 

For example:

 Bootstrap Example 

Input Group with Drop-down Button illustration for Lesson 35: Input Groups in Bootstrap 5 (6)

Above are the things you need to know about creating Input Groups in Bootstrap 5. Hopefully, this Bootstrap tutorial with examples is helpful to you.

FAQ

What is the main point of lesson 35: input groups in bootstrap 5?

Input groups in Bootstrap 5 give you a way to extend an input control. Here's how to use input groups in Bootstrap 5.

Why is this development important?

Key takeaway: Input groups in Bootstrap 5 give you a way to extend an input control.

What are the key takeaways?

Input groups in Bootstrap 5 provide a simple way to extend an input control.

Discussion

Reader Comments 0

Sign in with email or Google to join the discussion.