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.
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.
Sample Code
<!doctype html><htmllang="en"><head><metacharset="utf-8"><metaname="viewport"content="width=device-width, initial-scale=1"><linkhref="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css"rel="stylesheet"><linkhref="https://getbootstrap.com/docs/5.2/assets/css/docs.css"rel="stylesheet"><title>Bootstrap Example</title><scriptsrc="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js"></script></head><bodyclass="p-3 m-0 border-0 bd-example"><divclass="input-group input-group-sm mb-3"><spanclass="input-group-text"id="inputGroup-sizing-sm">Small</span><inputtype="text"class="form-control"aria-label="Sizing example input"aria-describedby="inputGroup-sizing-sm"></div><divclass="input-group mb-3"><spanclass="input-group-text"id="inputGroup-sizing-default">Default</span><inputtype="text"class="form-control"aria-label="Sizing example input"aria-describedby="inputGroup-sizing-default"></div><divclass="input-group input-group-lg"><spanclass="input-group-text"id="inputGroup-sizing-lg">Large</span><inputtype="text"class="form-control"aria-label="Sizing example input"aria-describedby="inputGroup-sizing-lg"></div></body></html>
Output
Bootstrap Input Group Checkboxes and Radios
Checkbox or radio option within an input group’s addon instead of text. We recommend adding .mt-0 to the .form-check-input when there’s no visible text next to the input.
Sample Code
<!doctype html><htmllang="en"><head><metacharset="utf-8"><metaname="viewport"content="width=device-width, initial-scale=1"><linkhref="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css"rel="stylesheet"><linkhref="https://getbootstrap.com/docs/5.2/assets/css/docs.css"rel="stylesheet"><title>Bootstrap Example</title><scriptsrc="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js"></script></head><bodyclass="p-3 m-0 border-0 bd-example"><divclass="input-group mb-3"><divclass="input-group-text"><inputclass="form-check-input mt-0"type="checkbox"value=""aria-label="Checkbox for following text input"></div><inputtype="text"class="form-control"aria-label="Text input with checkbox"></div><divclass="input-group"><divclass="input-group-text"><inputclass="form-check-input mt-0"type="radio"value=""aria-label="Radio button for following text input"></div><inputtype="text"class="form-control"aria-label="Text input with radio button"></div></body></html>
Output
Bootstrap Multiple inputs Group
While multiple <input>s are supported visually, validation styles are only available for input groups with a single <input>.
Sample Code
<!doctype html><htmllang="en"><head><metacharset="utf-8"><metaname="viewport"content="width=device-width, initial-scale=1"><linkhref="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css"rel="stylesheet"><linkhref="https://getbootstrap.com/docs/5.2/assets/css/docs.css"rel="stylesheet"><title>Bootstrap Example</title><scriptsrc="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js"></script></head><bodyclass="p-3 m-0 border-0 bd-example"><divclass="input-group"><spanclass="input-group-text">First and last name</span><inputtype="text"aria-label="First name"class="form-control"><inputtype="text"aria-label="Last name"class="form-control"></div></body></html>
Output
Bootstrap Multiple Addons Group
Multiple add-ons are supported and can be mixed with checkbox and radio input versions.
Sample Code
<!doctype html><htmllang="en"><head><metacharset="utf-8"><metaname="viewport"content="width=device-width, initial-scale=1"><linkhref="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css"rel="stylesheet"><linkhref="https://getbootstrap.com/docs/5.2/assets/css/docs.css"rel="stylesheet"><title>Bootstrap Example</title><scriptsrc="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js"></script></head><bodyclass="p-3 m-0 border-0 bd-example"><divclass="input-group mb-3"><spanclass="input-group-text">$</span><spanclass="input-group-text">0.00</span><inputtype="text"class="form-control"aria-label="Dollar amount (with dot and two decimal places)"></div><divclass="input-group"><inputtype="text"class="form-control"aria-label="Dollar amount (with dot and two decimal places)"><spanclass="input-group-text">$</span><spanclass="input-group-text">0.00</span></div></body></html>
Output
Bootstrap Button addons
Bootstrap provides several options for styling and adding functionality to buttons. One such option is button addons. Button addons allow you to add icons or text before or after a button, creating a more flexible and visually appealing interface.
Sample Code
<!doctype html><htmllang="en"><head><metacharset="utf-8"><metaname="viewport"content="width=device-width, initial-scale=1"><linkhref="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css"rel="stylesheet"><linkhref="https://getbootstrap.com/docs/5.2/assets/css/docs.css"rel="stylesheet"><title>Bootstrap Example</title><scriptsrc="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js"></script></head><bodyclass="p-3 m-0 border-0 bd-example"><divclass="input-group mb-3"><buttonclass="btn btn-outline-secondary"type="button"id="button-addon1">Button</button><inputtype="text"class="form-control"placeholder=""aria-label="Example text with button addon"aria-describedby="button-addon1"></div><divclass="input-group mb-3"><inputtype="text"class="form-control"placeholder="Recipient's username"aria-label="Recipient's username"aria-describedby="button-addon2"><buttonclass="btn btn-outline-secondary"type="button"id="button-addon2">Button</button></div><divclass="input-group mb-3"><buttonclass="btn btn-outline-secondary"type="button">Button</button><buttonclass="btn btn-outline-secondary"type="button">Button</button><inputtype="text"class="form-control"placeholder=""aria-label="Example text with two button addons"></div><divclass="input-group"><inputtype="text"class="form-control"placeholder="Recipient's username"aria-label="Recipient's username with two button addons"><buttonclass="btn btn-outline-secondary"type="button">Button</button><buttonclass="btn btn-outline-secondary"type="button">Button</button></div></body></html>
Output
Bootstrap Buttons with dropdowns
Bootstrap provides a way to create buttons with dropdowns, allowing you to add a list of options or actions to a button. This can be a useful feature for creating dropdown menus or selecting options from a list.
Bootstrap segmented buttons are a type of button group in the Bootstrap framework that allows you to group a set of buttons together and display them as a segmented control. Segmented buttons are often used for navigation or filtering purposes.
Bootstrap provides a customizable select dropdown component that you can use to create a dropdown list with various options.
The Bootstrap custom select is built on top of the standard HTML <select> element, and it allows you to add styles, icons, and custom behavior to the dropdown menu.
Sample Code
<!doctype html><htmllang="en"><head><metacharset="utf-8"><metaname="viewport"content="width=device-width, initial-scale=1"><linkhref="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css"rel="stylesheet"><linkhref="https://getbootstrap.com/docs/5.2/assets/css/docs.css"rel="stylesheet"><title>Bootstrap Example</title><scriptsrc="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js"></script></head><bodyclass="p-3 m-0 border-0 bd-example"><divclass="input-group mb-3"><labelclass="input-group-text"for="inputGroupSelect01">Options</label><selectclass="form-select"id="inputGroupSelect01"><optionselected="">Choose...</option><optionvalue="1">Kaashiv</option><optionvalue="2">Wikitechy</option><optionvalue="3">KaashivInfotech</option></select></div><divclass="input-group mb-3"><selectclass="form-select"id="inputGroupSelect02"><optionselected="">Choose...</option><optionvalue="1">Kaashiv</option><optionvalue="2">Wikitechy</option><optionvalue="3">KaashivInfotech</option></select><labelclass="input-group-text"for="inputGroupSelect02">Options</label></div><divclass="input-group mb-3"><buttonclass="btn btn-outline-secondary"type="button">Button</button><selectclass="form-select"id="inputGroupSelect03"aria-label="Example select with button addon"><optionselected="">Choose...</option><optionvalue="1">Kaashiv</option><optionvalue="2">Wikitechy</option><optionvalue="3">KaashivInfotech</option></select></div><divclass="input-group"><selectclass="form-select"id="inputGroupSelect04"aria-label="Example select with button addon"><optionselected="">Choose...</option><optionvalue="1">Kaashiv</option><optionvalue="2">Wikitechy</option><optionvalue="3">KaashivInfotech</option></select><buttonclass="btn btn-outline-secondary"type="button">Button</button></div></body></html>
Output
Bootstrap Custom file input
The Bootstrap custom file input allows you to style the file input field, add custom text and icons, and provide feedback to the user when a file is selected.
Related Searches to Bootstrap Input Group - Input Groups in Bootstrap with Examples
bootstrap 3 input group bootstrap 5 input group input group bootstrap 4 react bootstrap input group bootstrap form control bootstrap input group rounded corners bootstrap form input group html bootstrap 3 input-group bootstrap 5 input-group input-group bootstrap 4 input-group-addon bootstrap input-group width input-group-prepend bootstrap input group width bootstrap input group inline bootstrap input group with floating label bootstrap input group space between bootstrap input group color bootstrap input group not working bootstrap input group vertical bootstrap input group center vue bootstrap input group