Skip to content

CellComponentProps

Defined in: packages/core/src/fields/types.ts:142

Props passed to field cell components rendered in the data table list view.

Every cell component registered in a framework adapter’s fields map must accept these props. The TField generic narrows fieldDef to the specific field type so type-specific properties are accessible.

value is typed as TField["defaultValue"] which resolves to the field’s stored value type (e.g. string for TextField).

export function TextFieldCell(props: CellComponentProps<TextField>) {
if (!props.value) return <span></span>;
return <span>{props.value}</span>;
}

TField extends AdminField = AdminField

TData extends TDocument = TDocument

TCollectionConfig extends CollectionConfig = CollectionConfig

collection: TCollectionConfig

Defined in: packages/core/src/fields/types.ts:158

The parent collection config — used by title cells to build the edit link href.


fieldDef: TField

Defined in: packages/core/src/fields/types.ts:152

The resolved field definition — narrows to the specific field type via TField.


fieldKey: string

Defined in: packages/core/src/fields/types.ts:154

The resolved field key on the collection for this column.


isTitleField: boolean

Defined in: packages/core/src/fields/types.ts:156

Whether this cell is the field designated as useAsTitle — used to render a clickable edit link.


row: Row<TData>

Defined in: packages/core/src/fields/types.ts:150

The full document row, for cases where the cell needs to read other fields.


value: TField["defaultValue"]

Defined in: packages/core/src/fields/types.ts:148

The raw field value from the document — typed to the field’s value type.