Skip to content

TextareaField

Defined in: packages/core/src/fields/textarea/types.ts:92

Resolved configuration for a textarea() field, after all defaults are applied.

This is the type that framework adapters and field components receive — fieldDef in FieldComponentProps<TextareaField> and CellComponentProps<TextareaField> is this type.

TCollectionSlug extends VexResourceSlug = VexResourceSlug

TFieldMeta extends object = { }

admin: FieldAdminConfig<TCollectionSlug>

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

Resolved admin UI configuration with all defaults applied.

BaseField.admin


defaultValue: string

Defined in: packages/core/src/fields/textarea/types.ts:102

Pre-filled value shown in the admin form when creating a new field.

BaseField.defaultValue


optional description?: string

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

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.

BaseField.description


optional index?: ResolvedFieldIndexConfigInput

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

Convex index name for this field, or the object form for a compound index.

BaseField.index


optional interfaceDescription?: string

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

The JSDoc comment on the generated document interface property

BaseField.interfaceDescription


interfaceType: string

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

TypeScript type string written to generated document interfaces (e.g. "string", "number", "string[]").

BaseField.interfaceType


label: string

Defined in: packages/core/src/fields/textarea/types.ts:98

Display label shown in the admin form. Always set — inferred from the field key if not provided.

BaseField.label


optional max?: FieldLimit

Defined in: packages/core/src/fields/textarea/types.ts:106

Maximum allowed character length, resolved with a value-aware default error message.


meta: TFieldMeta

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

BaseField.meta


optional min?: FieldLimit

Defined in: packages/core/src/fields/textarea/types.ts:104

Minimum allowed character length, resolved with a value-aware default error message.


required: boolean

Defined in: packages/core/src/fields/textarea/types.ts:100

Whether this field is required in the database schema.

BaseField.required


rows: number

Defined in: packages/core/src/fields/textarea/types.ts:108

Visible textarea rows in the admin form.


optional searchIndex?: FieldSearchIndex

Defined in: packages/core/src/fields/textarea/types.ts:110

Full-text search index configuration for this field.

FieldSearchIndex


readonly type: "textarea"

Defined in: packages/core/src/fields/textarea/types.ts:96

optional validate(props): void | Promise<void>

Defined in: packages/core/src/fields/textarea/types.ts:112

Server-only async validation with value typed as string.

FieldValidateProps<TCollectionSlug, string>

void | Promise<void>

FieldValidate

BaseField.validate