# FormRendererProps (@salmonui/inputs/form-renderer)

> The FormRendererProps interface of @salmonui/inputs/form-renderer.

Canonical: https://salmonui.dev/docs/reference/inputs/form-renderer/FormRendererProps

```ts
import type { FormRendererProps } from '@salmonui/inputs/form-renderer';
```

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

## Reference

Kind: interface

```ts
interface FormRendererProps extends Omit<FormProps, 'onSubmit' | 'children'> {
    readonly schema: FormSchema;
    readonly uiSchema?: FormUiSchema | undefined;
    readonly onSubmit?: ((data: FormRendererData, details: FormRendererSubmitDetails, event: SubmitEvent<HTMLFormElement> | null) => void) | undefined;
    readonly children?: ReactNode;
    readonly size?: FieldSize | undefined;
    readonly localeText?: FormRendererLocaleText | undefined;
}
```

Members (14):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `schema` | `readonly schema: FormSchema;` |  | JSON Schema subset. |
| `uiSchema` | `readonly uiSchema?: FormUiSchema \| undefined;` | optional | Layout and widget choices. |
| `onSubmit` | `readonly onSubmit?: ((data: FormRendererData, details: FormRendererSubmitDetails, event: SubmitEvent<HTMLFormElement> \| null) => void) \| undefined;` | optional | Every submit, valid or not, with the data typed by the schema. The native submit is prevented unless `action` is set. |
| `children` | `readonly children?: ReactNode;` | optional | Rendered after the fields, before the submit button. |
| `size` | `readonly size?: FieldSize \| undefined;` | optional | Metric set of every field and the submit button. Default `'md'`. |
| `localeText` | `readonly localeText?: FormRendererLocaleText \| undefined;` | optional |  |
| `ref` | `ref?: Ref<HTMLFormElement>;` | optional, inherited |  |
| `action` | `action?: string \| ((formData: FormData) => void \| Promise<void>);` | optional, inherited | A URL or a React 19 action (`useActionState`). |
| `validationBehavior` | `validationBehavior?: ValidationBehavior;` | optional, inherited | `'native'` (default) blocks an invalid submit and focuses the first invalid field; `'aria'` marks fields and submits. |
| `validateOn` | `validateOn?: ValidateOn;` | optional, inherited | Default `validateOn` of the fields inside. Default `'blur'`. |
| `validationErrors` | `validationErrors?: Readonly<Record<string, string \| readonly string[] \| undefined>>;` | optional, inherited | Server errors keyed by field `name`, shown until the field's value changes. |
| `onBeforeValidate` | `onBeforeValidate?: ((event: FormValidateEvent) => void);` | optional, inherited |  |
| `onValidate` | `onValidate?: ((result: FormValidationResult) => void);` | optional, inherited |  |
| `requiredMark` | `requiredMark?: boolean;` | optional, inherited | Marks the label of every required field inside with a decorative asterisk (`@salmonui/inputs/form/styles.css`); the requirement itself is announced from `required` / `aria-required`. A `Field` opts out with `requiredMark={false}`. |
