Bootstrap 5 input groups extend form inputs with text, icons and buttons. This page covers 4 input group patterns — text addons, button addons, icons and sizes — each ready to copy into your forms.
Quick Setup
Input groups need only Bootstrap 5 CSS:
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet"/>
Key Classes Reference
| Class | What It Does |
|---|---|
.input-group | Required flex wrapper |
.input-group-text | Text or icon addon |
.input-group-sm | Small input group |
.input-group-lg | Large input group |
.form-control | The input inside the group |
.btn | Button addon inside group |
1. Bootstrap 5 Input Group with Text Addon
Add text labels before or after inputs using input-group-text. Common for currency, units and URL prefixes.
2. Bootstrap 5 Input Group with Buttons
Attach action buttons to inputs for search, copy and submit patterns.
3. Bootstrap 5 Input Group with Icons
Add Bootstrap Icons inside input-group-text for a polished form look.
4. Bootstrap 5 Input Group Sizes
Input groups in small, default and large sizes using input-group-sm and input-group-lg.
Frequently Asked Questions
Need a Full Bootstrap 5 Admin Dashboard?
Get a complete Angular 21 + Bootstrap 5 dashboard with 50+ components — built by the same team behind BootstrapPlanet.
Browse Templates →Use code FIRST30 for 30% off your first purchase.