www/docs/forms/input-group.mdx
import Basic from '!!raw-loader!../examples/InputGroup/Basic'; import ButtonDropdowns from '!!raw-loader!../examples/InputGroup/ButtonDropdowns'; import Buttons from '!!raw-loader!../examples/InputGroup/Buttons'; import Checkboxes from '!!raw-loader!../examples/InputGroup/Checkboxes'; import MultipleAddons from '!!raw-loader!../examples/InputGroup/MultipleAddons'; import MultipleInputs from '!!raw-loader!../examples/InputGroup/MultipleInputs'; import SegmentedButtonDropdowns from '!!raw-loader!../examples/InputGroup/SegmentedButtonDropdowns'; import Sizes from '!!raw-loader!../examples/InputGroup/Sizes';
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.
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.
Use the InputGroup.Radio or
InputGroup.Checkbox to add options to an input group.
While multiple inputs are supported visually, validation styles are only available for input groups with a single input.
<CodeBlock language="jsx" live> {MultipleInputs} </CodeBlock>Multiple add-ons are supported and can be mixed with checkbox and radio input versions.
<CodeBlock language="jsx" live> {MultipleAddons} </CodeBlock>