# FieldCommonProps (@salmonui/inputs/form)

> The FieldCommonProps interface of @salmonui/inputs/form: Props every Salmon field shares.

Canonical: https://salmonui.dev/docs/reference/inputs/form/FieldCommonProps

```ts
import type { FieldCommonProps } from '@salmonui/inputs/form';
```

Entry index: https://salmonui.dev/docs/reference/inputs/form (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/inputs/form.md).

## Reference

Kind: interface

```ts
interface FieldCommonProps {
    readonly label?: ReactNode;
    readonly description?: ReactNode;
    readonly errorMessage?: ReactNode | ((ctx: {
        readonly errors: readonly string[];
    }) => ReactNode);
    readonly invalid?: boolean | undefined;
    readonly validation?: FieldValidation | undefined;
    readonly validateOn?: ValidateOn | undefined;
    readonly size?: FieldSize | undefined;
}
```

Props every Salmon field shares.

Members (7):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `label` | `readonly label?: ReactNode;` | optional |  |
| `description` | `readonly description?: ReactNode;` | optional |  |
| `errorMessage` | `readonly errorMessage?: ReactNode \| ((ctx: {     readonly errors: readonly string[]; }) => ReactNode);` | optional | Error text (or a function of the errors) shown while the field is invalid. |
| `invalid` | `readonly invalid?: boolean \| undefined;` | optional | Forces the error state. |
| `validation` | `readonly validation?: FieldValidation \| undefined;` | optional | Rules in the Data Grid vocabulary. |
| `validateOn` | `readonly validateOn?: ValidateOn \| undefined;` | optional | When errors appear; default the `Form`'s, else `'blur'`. |
| `size` | `readonly size?: FieldSize \| undefined;` | optional | Metric set. Default `'md'`. |
