Skip to content

UIFieldInput

Defined in: packages/core/src/fields/ui/types.ts:37

Configuration input for a ui() field — a UI-only field (no stored value) that renders a fully custom Field (and optional Cell) component.

TCollectionSlug extends VexResourceSlug = VexResourceSlug

TFieldMeta extends object = { }

TComponent extends ComponentHKT = ComponentHKT

admin: UIFieldAdminInput<TCollectionSlug> & object

Defined in: packages/core/src/fields/ui/types.ts:42

Admin UI configuration for this UI field.

components: object

optional Cell?: ApplyComponent<TComponent, UIFieldCellProps<TCollectionSlug>>

When set, the list view shows a column rendering this. Omit to show no column.

Field: ApplyComponent<TComponent, UIFieldComponentProps<TCollectionSlug>>

Rendered in the admin edit form at this field’s position.

BaseUIFieldInput.admin


optional description?: string

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

Semantic description of the field. Used in three places:

  1. Helper text rendered below the field input in the admin form UI.
  2. As the Zod .meta({ description }) value for form validation.
  3. As the JSDoc comment on the generated document interface property.

To write a separate JSDoc comment, use interfaceDescription in addition.

BaseFieldInput.description


optional label?: string

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

Display label for the field in the admin form.

BaseFieldInput.label


optional meta?: TFieldMeta

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

BaseUIFieldInput.meta