FieldComponentMap
FieldComponentMap<
F,TFieldMeta> ={ [K in DataFieldType]: { cell: ApplyComponent<F, CellComponentProps<Extract<AdminDataField<TFieldMeta>, { type: K }>>>; display?: ApplyComponent<F, DisplayComponentProps<Extract<AdminDataField<TFieldMeta>, { type: K }>>>; field: ApplyComponent<F, Omit<FieldComponentProps<TFieldMeta, Extract<AdminDataField<TFieldMeta>, { type: K }>>, "renderDefault">>; filterInput?: ApplyComponent<F, FilterInputProps<Extract<AdminDataField<TFieldMeta>, { type: K }>>> } }
Defined in: packages/core/src/framework.ts:32
Maps every field type in the AdminField union to the framework’s input component type
for that field.
Keyed by AdminField['type'] — as new field types are added to the union, TypeScript
automatically requires a matching component slot in this map.
Each slot resolves to ApplyComponent<F, FieldComponentProps<MatchingFieldDef>>, which
means the component must accept the input props for that specific field type. This gives
the component full autocomplete for field-specific properties (e.g. fieldDef.max
on the text slot).
Type Parameters
Section titled “Type Parameters”F extends ComponentHKT
TFieldMeta
Section titled “TFieldMeta”TFieldMeta extends BaseFieldMeta = BaseFieldMeta
- CellComponentProps for the data table cell props
- ComponentHKT for how framework packages define their HKT
- ApplyComponent for how the HKT resolves to a concrete component type