An input group can combine an input with a start addon, an end addon or both. All Orbit's input can be combined, you can even make it work with a custom input.
Default
A default input group.
days
Editable example
<InputGroup>
<TextInputaria-label="Elapsed days"/>
<Text>days</Text>
</InputGroup>
Inputs
An input group can use any Orbit's input component.
https://
passengers
Editable example
<Stack>
<InputGroup>
<Text>https://</Text>
<TextInputaria-label="Url"/>
</InputGroup>
<InputGroup>
<NumberInputaria-label="Number of passengers"/>
<Text>passengers</Text>
</InputGroup>
</Stack>
Text addon
An input group can have a textual addon to offer additional hints. A text addon shouldn't replace a field label or a field description.
https://
.space
Editable example
<InputGroup>
<Text>https://</Text>
<TextInputaria-label="Url"/>
<Text>.space</Text>
</InputGroup>
Menu addon
An input group can have a menu addon.
Editable example
<InputGroup>
<Autocompleteplaceholder="Planets">
<Itemkey="earth">Earth</Item>
<Itemkey="mars">Mars</Item>
<Itemkey="saturn">Saturn</Item>
<Itemkey="jupiter">Jupiter</Item>
</Autocomplete>
<MenuTrigger>
<IconButtonaria-label="Select a galaxy"variant="secondary">
Any addon implementing the InputGroupContext can integrate with an input group component. This is usually done by using the useInputGroupAddonProps hook.