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).
Example
Section titled “Example”export function TextFieldCell(props: CellComponentProps<TextField>) { if (!props.value) return <span>—</span>; return <span>{props.value}</span>;}- InputComponentProps for the edit form equivalent
- FieldComponentMap for how components are registered
Type Parameters
Section titled “Type Parameters”TField
Section titled “TField”TField extends AdminField = AdminField
TData extends TDocument = TDocument
TCollectionConfig
Section titled “TCollectionConfig”TCollectionConfig extends CollectionConfig = CollectionConfig
Properties
Section titled “Properties”collection
Section titled “collection”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
Section titled “fieldDef”fieldDef:
TField
Defined in: packages/core/src/fields/types.ts:152
The resolved field definition — narrows to the specific field type via TField.
fieldKey
Section titled “fieldKey”fieldKey:
string
Defined in: packages/core/src/fields/types.ts:154
The resolved field key on the collection for this column.
isTitleField
Section titled “isTitleField”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.