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