Bootstrap 5 Input Group Sizes

Ruth Jul 09, 2026

In the realm of web development, Bootstrap has long been a go-to library for creating responsive and mobile-first websites. With the release of Bootstrap 5, input groups have seen significant improvements, including the introduction of a new size property. This article delves into the intricacies of Bootstrap 5 input group sizes, providing a comprehensive guide to help you harness this powerful feature.

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

Before we dive into the specifics, let's briefly recap what input groups are in Bootstrap. Input groups are a collection of form controls like input fields, select elements, or text areas, often accompanied by add-ons like buttons, dropdowns, or labels. They help keep related form elements together and improve the overall user experience.

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

Understanding Bootstrap 5 Input Group Sizes

In Bootstrap 5, input groups can now be customized with different sizes. This new feature allows you to create input groups that align with the size of other elements on your page, such as buttons or navigation links. It brings a new level of consistency and control to your designs.

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

Bootstrap 5 introduces three input group sizes: small, default (or regular), and large. Each size corresponds to a specific height and padding, ensuring that your input groups integrate seamlessly with other UI elements.

Small Input Groups

Bootstrap 5 Modal Form
Bootstrap 5 Modal Form

Small input groups are perfect for compact forms or when space is at a premium. They are 32px high and have 0.25rem (4px) of padding. To create a small input group, simply add the .input-group-sm class to your input group container.

Here's an example of a small input group with an input field and a button add-on: ```html

```

Default Input Groups

Bootstrap Tutorial | Bootstrap Notes | Bootstrap 5
Bootstrap Tutorial | Bootstrap Notes | Bootstrap 5

Default input groups are the standard size in Bootstrap 5. They are 38px high and have 0.5rem (8px) of padding. No additional class is needed to create a default input group; it's the size you'll get by default.

Here's an example of a default input group with an input field and a dropdown add-on: ```html

```

Customizing Input Group Sizes

Bootstrap Tutorial | Bootstrap Notes | Bootstrap 5
Bootstrap Tutorial | Bootstrap Notes | Bootstrap 5

While Bootstrap 5 provides predefined sizes, you might want to customize the sizes to better fit your design. You can do this by using custom CSS to override the default styles.

For example, to create an extra-large input group, you could add the following CSS to your stylesheet: ```css .input-group-lg { .form-control { height: 55px; padding: 1rem; } } ```

Bootstrap Tutorial | Bootstrap Notes | Bootstrap 5
Bootstrap Tutorial | Bootstrap Notes | Bootstrap 5
Bootstrap Tutorial | Bootstrap Notes | Bootstrap 5
Bootstrap Tutorial | Bootstrap Notes | Bootstrap 5
Bootstrap Photo Gallery
Bootstrap Photo Gallery
Bootstrap Glyphicons
Bootstrap Glyphicons
Chat bot Bootstrap 5 Admin Templates with LTR Light Theme
Chat bot Bootstrap 5 Admin Templates with LTR Light Theme
Ynex - Blazor Server Bootstrap Admin Template
Ynex - Blazor Server Bootstrap Admin Template
Best Free Bootstrap Login Forms » CSS Author
Best Free Bootstrap Login Forms » CSS Author
Bootstrap 5 Admin Templates - Minimal
Bootstrap 5 Admin Templates - Minimal
the color chart for different colors and font options in an iphone phone screen, including blue, red, yellow, green, black, white
the color chart for different colors and font options in an iphone phone screen, including blue, red, yellow, green, black, white
Bootstrap Themes at BootstrapZero
Bootstrap Themes at BootstrapZero
100+ Free Bootstrap 5 Templates » CSS Author
100+ Free Bootstrap 5 Templates » CSS Author
an image of a dashboard screen with different colors and numbers on it, as well as the
an image of a dashboard screen with different colors and numbers on it, as well as the
Bootstrap Buttons Set
Bootstrap Buttons Set
Dash UI: Free Bootstrap Admin Dashboard Template
Dash UI: Free Bootstrap Admin Dashboard Template
the different types of font and numbers
the different types of font and numbers
BOOTSTRAP INPUT FORM (2020) | HOW TO MAKE FORM IN BOOTSTRAP
BOOTSTRAP INPUT FORM (2020) | HOW TO MAKE FORM IN BOOTSTRAP
Bootstrap Buttons Guide: Examples and Tutorials
Bootstrap Buttons Guide: Examples and Tutorials
Medical Dashboard Bootstrap 5 Admin Template with LTR Light Theme
Medical Dashboard Bootstrap 5 Admin Template with LTR Light Theme
bootstrap 3 - cheap sheet
bootstrap 3 - cheap sheet
Datta Able Bootstrap 5 Admin Template
Datta Able Bootstrap 5 Admin Template

Responsive Input Groups

Input groups in Bootstrap 5 are responsive by default. This means that they will automatically adjust their size based on the screen size. You can use the responsive utility classes, like .d-sm-none or .d-md-block, to further control the visibility of input groups at different screen sizes.

Here's an example of using responsive utility classes to show a large input group only on medium and larger screens: ```html

```

Input Group Alignment

In addition to sizes, Bootstrap 5 also allows you to control the vertical alignment of input group add-ons. You can use the .align-items-center, .align-items-start, or .align-items-end classes on the input group container to align add-ons with the top, bottom, or center of the input field, respectively.

Here's an example of using the .align-items-center class to center align a button add-on: ```html

```

In conclusion, Bootstrap 5's input group sizes provide a powerful tool for creating consistent and responsive user interfaces. By leveraging the predefined sizes and customization options, you can create input groups that perfectly fit your design needs. So go ahead, explore the possibilities, and build stunning web applications with Bootstrap 5.