ui
ui<
TCollectionSlug,TFieldMeta,TComponent>(props):UIField<TCollectionSlug,TFieldMeta,TComponent>
Defined in: packages/core/src/fields/ui/config.ts:29
Renders a fully custom admin-form field with no data representation.
Dropped by getDataFields — never reaches schema, validation, type-gen,
RBAC, indexing, or default-value resolution. Legal in any fields record
(a collection/global’s own, a group()’s, a group-shaped array()’s
items, a blocks() block’s own).
Type Parameters
Section titled “Type Parameters”TCollectionSlug
Section titled “TCollectionSlug”TCollectionSlug extends string = string
Types Field/Cell’s data and
admin.condition’s data against that resource’s real document.
TFieldMeta
Section titled “TFieldMeta”TFieldMeta extends object = { }
TComponent
Section titled “TComponent”TComponent extends ComponentHKT = ComponentHKT
Parameters
Section titled “Parameters”UIFieldInput<TCollectionSlug, TFieldMeta, TComponent>
UI field configuration: admin.components and layout options.
Returns
Section titled “Returns”UIField<TCollectionSlug, TFieldMeta, TComponent>
The resolved UIField definition with defaults applied.
Example
Section titled “Example”defineCollection({ fields: { wordCount: ui<typeof TABLE_SLUG_PAGES>({ admin: { components: { Field: WordCountField } }, }), },})