# inputtext

```ts
import { InputTextModule } from '@anguless/angulux/inputtext';
```

## InputText

`[aglInputText]` — directive

Inherits every input, output and slot of `BaseModelHolder` — see [basemodelholder.md](basemodelholder.md).

InputText directive is an extension to standard input element with theming.

| Input | Type | Default | Description |
| --- | --- | --- | --- |
| `hostName` | `any` | _not documented_ |  |
| `ptInputText` | `InputTextPassThrough` | `undefined` | Used to pass attributes to DOM elements inside the InputText component. **Deprecated:** use pInputTextPT instead. |
| `pInputTextPT` | `InputTextPassThrough` | `undefined` | Used to pass attributes to DOM elements inside the InputText component. |
| `pInputTextUnstyled` | `boolean \| undefined` | `undefined` | Indicates whether the component should be rendered without styles. |
| `aglSize` | `'large' \| 'small' \| undefined` | _not documented_ | Defines the size of the component. |
| `variant` | `'filled' \| 'outlined' \| undefined` | `undefined` | Specifies the input variant of the component. |
| `fluid` | `` | `undefined` | Spans 100% width of the container when enabled. |
| `invalid` | `` | `false` | When present, it specifies that the component should have invalid state style. Left unbound, an element bound through `formControlName`, `[formControl]` or `ngModel` shows the state of that control once it is touched or dirty. |
| `touched` | `boolean \| undefined` | `undefined` | Whether the user has visited the field. Once this or `dirty` is set, the invalid state style waits for interaction: it appears when the field is touched or dirty. Signal Forms' `[formField]` sets both, so an untouched required field is not shown as invalid. Leave both unset and `invalid` alone decides. |
| `dirty` | `boolean \| undefined` | `undefined` | Whether the user has changed the value. See `touched`. |
