diff --git a/docs_headless/src/content/docs/ReferenceManyInputBase.md b/docs_headless/src/content/docs/ReferenceManyInputBase.md index 5caf02af06c..5abf27817c5 100644 --- a/docs_headless/src/content/docs/ReferenceManyInputBase.md +++ b/docs_headless/src/content/docs/ReferenceManyInputBase.md @@ -71,7 +71,7 @@ const ProductEdit = () => ( | ----------------- | -------- | ------------------------- | -------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `target` | Required | `string` | - | Target field carrying the relationship on the referenced resource, e.g. 'user_id' | | `reference` | Required | `string` | - | The name of the resource for the referenced records, e.g. 'books' | -| `children` | Optional | `ReactNode` | - | One or several elements that render a list of records based on a `ListContext` | +| `children` | Optional | `Element` | - | One or several elements that render a list of records based on a `ListContext` | | `defaultValue` | Optional | `array` | - | Default value of the input. | | `filter` | Optional | `Object` | - | Filters to use when fetching the related records, passed to `getManyReference()` | | `mutationOptions` | Optional | `UseMutationOptions` | - | Options for the mutations (`create`, `update` and `delete`) | diff --git a/docs_headless/src/content/docs/ReferenceOneInputBase.md b/docs_headless/src/content/docs/ReferenceOneInputBase.md index 9fe07a75bd4..ab71bc02d2e 100644 --- a/docs_headless/src/content/docs/ReferenceOneInputBase.md +++ b/docs_headless/src/content/docs/ReferenceOneInputBase.md @@ -58,11 +58,11 @@ const BookEdit = () => ( | ----------------- | -------- | -------------------- | ------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `target` | Required | `string` | - | Target field carrying the relationship on the referenced resource, e.g. 'book_id' | | `reference` | Required | `string` | - | The name of the resource for the referenced records, e.g. 'book_details' | -| `children` | Optional | `ReactNode` | - | One or several input elements that accept a `source` prop | +| `children` | Optional | `Element` | - | One or several input elements that accept a `source` prop | | `defaultValue` | Optional | `Object` | - | Default value for the related record (in case it does not yet exist) | -| `error` | Optional | `ReactNode` | - | The element to display when an error occurs while loading a reference | +| `error` | Optional | `Element` | - | The element to display when an error occurs while loading a reference | | `filter` | Optional | `Object` | - | Filters to use when fetching the related record, passed to `getManyReference() | -| `loading` | Optional | `ReactNode` | - | The element to display while loading a reference | +| `loading` | Optional | `Element` | - | The element to display while loading a reference | | `mutationOptions` | Optional | `UseMutationOptions` | - | Options for the mutations (`create` and `update`) | | `render` | Optional | `Function` | - | A function that returns the children to display. Takes precedence over `children` | | `sort` | Optional | `{ field, order }` | `{ field: 'id', order: 'ASC' }` | Sort order to use when fetching the related record, passed to `getManyReference() |