# InputElementArgs

Interface · extends [`IBindableArgs`](https://api.playcanvas.com/pcui/interfaces/IBindableArgs.md)`<`[`T`](https://api.playcanvas.com/pcui/interfaces/InputElementArgs.md#t)`>`, [`IPlaceholderArgs`](https://api.playcanvas.com/pcui/interfaces/IPlaceholderArgs.md)

Source: https://github.com/playcanvas/pcui/blob/77ed2b8ba8660c9644049b0d1942652721e7a6c4/src/components/InputElement/index.ts#L10

The arguments for the [InputElement](https://api.playcanvas.com/pcui/classes/InputElement.md) constructor.

## Properties

### blurOnEnter

```ts
blurOnEnter?: boolean
```

Sets whether pressing Enter will blur (unfocus) the field. Defaults to `true`.

### blurOnEscape

```ts
blurOnEscape?: boolean
```

Sets whether pressing Escape will blur (unfocus) the field. Defaults to `true`.

### input

```ts
input?: HTMLInputElement
```

The input element to associate this [InputElement](https://api.playcanvas.com/pcui/classes/InputElement.md) with. If not supplied one will be created instead.

### keyChange

```ts
keyChange?: boolean
```

Sets whether any key up event will cause a change event to be fired.

## Inherited from ElementArgs

- `alignItems?: string`
- `alignSelf?: string`
- `binding?: BindingBase`
- `class?: string | string[]`
- `dom?: string | HTMLElement`
- `enabled?: boolean`
- `error?: boolean`
- `flexBasis?: string | number`
- `flexDirection?: string`
- `flexGrow?: string | number`
- `flexShrink?: string | number`
- `flexWrap?: string`
- `height?: number`
- `hidden?: boolean`
- `id?: string`
- `ignoreParent?: boolean`
- `isRoot?: boolean`
- `justifyContent?: string`
- `justifySelf?: string`
- `link?: { observer: Observer | Observer[]; path: string | string[] }`
- `onChange?: (value: T) => void`
- `onClick?: () => void`
- `onRemove?: () => void`
- `parent?: Element`
- `readOnly?: boolean`
- `style?: string`
- `tabIndex?: number`
- `width?: number`

## Inherited from [IPlaceholderArgs](https://api.playcanvas.com/pcui/interfaces/IPlaceholderArgs.md)

- `placeholder?: string`

## Inherited from [IBindableArgs](https://api.playcanvas.com/pcui/interfaces/IBindableArgs.md)

- `renderChanges?: boolean`
- `value?: T`
- `values?: T[]`
