Built-in Schema Fields
TextField
Basic Usage
Use TextField when the schema needs a standard single-line text input bound to one value.
Registry
- Key:
text($field: 'text'ortype: 'text'with default$fieldresolution) - Module:
src/forms/fields/TextField.tsx - Contract:
SchemaFormFieldComponent— receives{ form, field, schema }.
Role in SchemaForm
Renders a single-line Input inside FieldLayout, bound with useEngineField(form, field.name). Value is coerced with String(value ?? '').
Common field props
name (required), label, instructions, warning, placeholder, required, disabled. Validation uses the shared engine pipeline from field.validation / required.
Example schema
json
{
"$field": "text",
"name": "title",
"label": "Title",
"required": true,
"validation": "required|max:255"
}Related
- Plain component docs: Input
- Schema Fields · Conditions
Edit this page
Last updated: May 22, 2026, 6:53 PM