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.
- TextareaFieldInput for the user-facing input type
- textarea for the config function that produces this type
Extends
Section titled “Extends”BaseField<TCollectionSlug,TFieldMeta>
Type Parameters
Section titled “Type Parameters”TCollectionSlug
Section titled “TCollectionSlug”TCollectionSlug extends VexResourceSlug = VexResourceSlug
TFieldMeta
Section titled “TFieldMeta”TFieldMeta extends object = { }
Properties
Section titled “Properties”admin:
FieldAdminConfig<TCollectionSlug>
Defined in: packages/core/src/fields/baseTypes.ts:576
Resolved admin UI configuration with all defaults applied.
Inherited from
Section titled “Inherited from”defaultValue
Section titled “defaultValue”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.
Overrides
Section titled “Overrides”description?
Section titled “description?”
optionaldescription?:string
Defined in: packages/core/src/fields/baseTypes.ts:585
Semantic description of the field. Used in three places:
- Helper text rendered below the field input in the admin form UI.
- As the Zod
.meta({ description })value for form validation. - As the JSDoc comment on the generated document interface property.
To write a separate JSDoc comment, use interfaceDescription in addition.
Inherited from
Section titled “Inherited from”index?
Section titled “index?”
optionalindex?:ResolvedFieldIndexConfigInput
Defined in: packages/core/src/fields/baseTypes.ts:589
Convex index name for this field, or the object form for a compound index.
Inherited from
Section titled “Inherited from”interfaceDescription?
Section titled “interfaceDescription?”
optionalinterfaceDescription?:string
Defined in: packages/core/src/fields/baseTypes.ts:587
The JSDoc comment on the generated document interface property
Inherited from
Section titled “Inherited from”BaseField.interfaceDescription
interfaceType
Section titled “interfaceType”interfaceType:
string
Defined in: packages/core/src/fields/baseTypes.ts:591
TypeScript type string written to generated document interfaces (e.g. "string", "number", "string[]").
Inherited from
Section titled “Inherited from”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.
Overrides
Section titled “Overrides”
optionalmax?: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
Inherited from
Section titled “Inherited from”
optionalmin?:FieldLimit
Defined in: packages/core/src/fields/textarea/types.ts:104
Minimum allowed character length, resolved with a value-aware default error message.
required
Section titled “required”required:
boolean
Defined in: packages/core/src/fields/textarea/types.ts:100
Whether this field is required in the database schema.
Overrides
Section titled “Overrides”rows:
number
Defined in: packages/core/src/fields/textarea/types.ts:108
Visible textarea rows in the admin form.
searchIndex?
Section titled “searchIndex?”
optionalsearchIndex?:FieldSearchIndex
Defined in: packages/core/src/fields/textarea/types.ts:110
Full-text search index configuration for this field.
readonlytype:"textarea"
Defined in: packages/core/src/fields/textarea/types.ts:96
Methods
Section titled “Methods”validate()?
Section titled “validate()?”
optionalvalidate(props):void|Promise<void>
Defined in: packages/core/src/fields/textarea/types.ts:112
Server-only async validation with value typed as string.
Parameters
Section titled “Parameters”FieldValidateProps<TCollectionSlug, string>
Returns
Section titled “Returns”void | Promise<void>
Overrides
Section titled “Overrides”BaseField.validate