igx-input-group
June 22, 2026 ยท View on GitHub
Category
Components
Description
igx-input-group represents a input field. A walkthrough of how to get started can be found here
Usage
<igx-input-group>
<igx-prefix>+359</igx-prefix>
<label igxLabel for="phone">Phone</label>
<input igxInput name="phone" type="text" [(ngModel)]="user.phone" />
<igx-suffix>
<igx-icon>phone</igx-icon>
</igx-suffix>
</igx-input-group>
Elements
The following directives could be wrapped in an
Prefix & Suffix
Both directives can contain html elements, strings, icons or even other components. Let's add a new input field with string prefix (+359) and igxIcon suffix (
Hints
Ignite UI for Angular Hint provides a helper text placed below the input. The hint can be placed at the start or at the end of the input. The position of the igxHint can be set using the position property. Let's add a hint to our phone input:
<igx-input-group>
<igx-prefix>+359</igx-prefix>
<label igxLabel for="phone">Phone</label>
<input igxInput name="phone" type="text" [(ngModel)]="user.phone" />
<igx-suffix>
<igx-icon>phone</igx-icon>
</igx-suffix>
<igx-hint position="start">Ex.: +359 888 123 456</igx-hint>
</igx-input-group>
API
Inputs
| Name | Description |
|---|---|
| type | How the input will be styled. The allowed values are line, box, border and search. The default is box. |
| theme | Allows the user to change the theme of the input group. |
| position | Hint API. Where the hint will be placed. The allowed values are start and end. The default value is start. |
Methods
| Name | Description |
|---|---|
| isTypeLine() | Whether the igxInputGroup type is line |
| isTypeBox() | Whether the igxInputGroup type is box |
| isTypeBorder() | Whether the igxInputGroup type is border |
| isTypeSearch() | Whether the igxInputGroup type is search. |