Skip to content

RelationFieldProps

RelationFieldProps = BaseFieldProps & object

Defined in: packages/ui/src/types.ts:834

Props for the RelationField read-only display component.

Displays a related record’s display field (e.g., author name) with an optional link to the related record’s detail page. The linkTo pattern supports :id as a placeholder for the record’s ID.

optional display: string

Property name to display from the related record. Defaults to “name”.

optional linkTo: string

URL pattern for linking to the related record. Use :id as placeholder.

value: unknown

Related record object or primitive value.

BaseFieldProps for inherited label and className props.