# TerminalFieldState

Source: /tuil/docs/reference/packages/form/api/terminal-field-state
Locale: en

interface exported by @mwillbanks/tuil-form.



{/* Generated by tooling/docs/generate-reference.ts. */}

## interface [#interface]

Public interface exported by `@mwillbanks/tuil-form`.

```ts
export interface TerminalFieldState<T> {
  readonly name: string;
  readonly value: T;
  readonly initialValue: T;
  readonly errors: readonly string[];
  readonly touched: boolean;
  readonly dirty: boolean;
  readonly validating: boolean;
  readonly disabled: boolean;
  readonly readOnly: boolean;
  readonly valid: boolean;
}
```

## Members [#members]

| Member         | Type                | Required | Description                                                | Related types |
| -------------- | ------------------- | -------- | ---------------------------------------------------------- | ------------- |
| `name`         | `string`            | Yes      | The `name` member uses the `string` contract.              | —             |
| `value`        | `T`                 | Yes      | The `value` member uses the `T` contract.                  | —             |
| `initialValue` | `T`                 | Yes      | The `initialValue` member uses the `T` contract.           | —             |
| `errors`       | `readonly string[]` | Yes      | The `errors` member uses the `readonly string[]` contract. | —             |
| `touched`      | `boolean`           | Yes      | The `touched` member uses the `boolean` contract.          | —             |
| `dirty`        | `boolean`           | Yes      | The `dirty` member uses the `boolean` contract.            | —             |
| `validating`   | `boolean`           | Yes      | The `validating` member uses the `boolean` contract.       | —             |
| `disabled`     | `boolean`           | Yes      | The `disabled` member uses the `boolean` contract.         | —             |
| `readOnly`     | `boolean`           | Yes      | The `readOnly` member uses the `boolean` contract.         | —             |
| `valid`        | `boolean`           | Yes      | The `valid` member uses the `boolean` contract.            | —             |

## Parameters [#parameters]

This declaration has no public members.

## Returns [#returns]

This declaration does not return a value.

## Throws [#throws]

No thrown errors are documented for this declaration.

## Related types [#related-types]

No package-local related types.

## Source [#source]

[View the secondary source reference](https://github.com/mwillbanks/tuil/blob/main/packages/form/src/index.tsx)

## Package [#package]

[@mwillbanks/tuil-form](/tuil/docs/reference/packages/form)
