packages/components/eui-input-button/eui-input-button.component.ts
A layout component that positions button elements relative to input fields. Enables the creation of input groups with leading or trailing action buttons, commonly used for search inputs, password visibility toggles, or clear actions.
<eui-input-button>
<input euiInputText placeholder="Search..." />
<button euiButton euiPrimary>Search</button>
</eui-input-button><eui-input-button [euiButtonPositionStart]="true">
<button euiIconButton icon="filter" ariaLabel="Filter"></button>
<input euiInputText placeholder="Filter results..." />
</eui-input-button>euiButtonPositionStart is true, it overrides end positioning| changeDetection | ChangeDetectionStrategy.OnPush |
| selector | eui-input-button |
| styleUrls | ./eui-input-button.component.scss |
| templateUrl | ./eui-input-button.component.html |
Inputs |
HostBindings |
Accessors |
| euiButtonPositionEnd |
Type : boolean
|
Default value : true
|
|
Positions the button at the end (right in LTR, left in RTL) of the input field. Ignored when euiButtonPositionStart is true. Defaults to true. |
| euiButtonPositionStart |
Type : boolean
|
Default value : false
|
|
Positions the button at the start (left in LTR, right in RTL) of the input field. When true, overrides euiButtonPositionEnd. Defaults to false. |
| class |
Type : string
|
| cssClasses |
getcssClasses()
|