Introducing PrimeReact v11-alpha 🎉Discover Now
styledForm

InputGroup

InputGroup displays text, icon, buttons and other content can be grouped next to an input.

https://
.com
preview

Usage#

import { InputGroup } from '@primereact/ui/inputgroup';
<InputGroup.Root>
    <InputGroup.Addon />
</InputGroup.Root>

Examples#

Basic#

Combines an input with addons such as buttons or text labels.

https://
.com
basic-demo

Multiple#

A group is created by wrapping the input and add-ons with the InputGroup component. Each add-on element is defined as a child of InputGroup.Addon component. Multiple add-ons can be placed inside the same group.

$
.00
multiple-demo

Button#

Buttons can be placed at either side of an input element.

8 results
button-demo

Checkbox & Radio#

Checkbox and RadioButton components can be combined with an input element under the same group.

checkbox-radio-demo

Select#

A Select component can be used within an InputGroup alongside other add-ons and inputs.

www
select-demo

File Upload#

File upload functionality can be integrated within an InputGroup for inline file selection.

Upload
fileupload-demo

Float Label#

FloatLabel visually integrates a label with its form element. Visit FloatLabel documentation for more information.

$
.00
www
float-label-demo

Ifta Label#

IftaLabel is used to create infield top aligned labels. Visit IftaLabel documentation for more information.

ifta-label-demo

Accessibility#

Screen Reader#

InputGroup and InputGroupAddon do not require any roles and attributes.

Keyboard Support#

Component does not include any interactive elements.