Skip to main content

<ReferenceField>

Fetches a related record and displays its representation. It manages the data fetching automatically and provides a link to the related record by default.

Usage

<ReferenceField source="userId" reference="users" />

Custom Child

By default, it uses the recordRepresentation defined in the resource. You can pass a child component to customize what is displayed for the related record.

<ReferenceField source="categoryId" reference="categories">
<TextField source="slug" />
</ReferenceField>

Props

PropTypeDefaultDescription