# FormValidationError

Source: /tuil/docs/reference/packages/form/api/form-validation-error
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 FormValidationError {
  readonly field: string;
  readonly message: string;
}
```

## Members [#members]

| Member    | Type     | Required | Description                                      | Related types |
| --------- | -------- | -------- | ------------------------------------------------ | ------------- |
| `field`   | `string` | Yes      | The `field` member uses the `string` contract.   | —             |
| `message` | `string` | Yes      | The `message` member uses the `string` 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)
