Skip to main content

Type Alias: FieldConfig<T>

FieldConfig<T> = FieldConfigBase & FieldConfigExtras<T>

Defined in: packages/core/dist/types.d.ts:207

Per-field configuration that customises how a Zod schema field is rendered.

Merges base options (component override, visibility, order, props) with type-aware extras: nested fields for object schemas, and arrayItems for array schemas. Use this type when annotating a ZodFormsConfig.fields record or a per-schema schemas.[key].fields map.

Type Parameters

T

T extends $ZodType = $ZodType

The Zod schema type of the field, used to constrain nested fields and arrayItems.