Skip to main content

Input Group

Easily extend form controls by adding text, buttons, or button groups on either side of textual inputs, custom selects, and custom file inputs.

Exampleโ€‹

Place one add-on or button on either side of an input. You may also place one on both sides of an input. Remember to place <label>s outside the input group.

Result
Loading...
Live Editor

Sizingโ€‹

Add the relative form sizing classes to the InputGroup and contents within will automatically resizeโ€”no need for repeating the form control size classes on each element.

Result
Loading...
Live Editor

Checkboxes and radiosโ€‹

Use the InputGroup.Radio or InputGroup.Checkbox to add options to an input group.

Result
Loading...
Live Editor

Multiple inputsโ€‹

While multiple inputs are supported visually, validation styles are only available for input groups with a single input.

Result
Loading...
Live Editor

Multiple addonsโ€‹

Multiple add-ons are supported and can be mixed with checkbox and radio input versions.

Result
Loading...
Live Editor

Button addonsโ€‹

Result
Loading...
Live Editor

Buttons with Dropdownsโ€‹

Result
Loading...
Live Editor

Segmented buttonsโ€‹

Result
Loading...
Live Editor

APIโ€‹

InputGroupโ€‹