Skip to content

RelationshipFieldAdminConfig

Defined in: packages/core/src/fields/relationship/types.ts:48

Resolved admin configuration for a relationship field after defaults are applied.

RelationshipFieldAdminInput for the user-facing input type

TCollectionSlug extends CollectionSlug = CollectionSlug

The target collection slug.

TComponent extends ComponentHKT = ComponentHKT

cellAlignment: Alignment

Defined in: packages/core/src/fields/baseTypes.ts:159

Text alignment for this field’s column in the data table.

FieldAdminConfig.cellAlignment


components: object

Defined in: packages/core/src/fields/relationship/types.ts:56

Custom component overrides specific to this relationship field instance. These take precedence over the target collection’s admin.components.

optional preview?: ApplyComponent<TComponent, RelationshipPreviewProps<TCollectionSlug>>

Per-field override for rendering this relationship’s docs. Wins over the target collection’s admin.components.preview. TCollectionSlug is the target slug (fieldDef.collection.slug).


hidden: boolean

Defined in: packages/core/src/fields/baseTypes.ts:151

Whether the field is hidden from the admin form.

FieldAdminConfig.hidden


optional placeholder?: string

Defined in: packages/core/src/fields/baseTypes.ts:161

Placeholder text shown in the input when empty.

FieldAdminConfig.placeholder


position: "main" | "sidebar"

Defined in: packages/core/src/fields/baseTypes.ts:155

Position of the field in the form layout — "main" or "sidebar".

FieldAdminConfig.position


readOnly: boolean

Defined in: packages/core/src/fields/baseTypes.ts:153

Whether the field is read-only in the admin form.

FieldAdminConfig.readOnly


width: "full" | "half"

Defined in: packages/core/src/fields/baseTypes.ts:157

Width of the field within its row — "full" or "half".

FieldAdminConfig.width