Guide Overview
Schema FormX is a schema-driven form solution that supports cross-framework rendering. The same schema can render different UI components, and the same component can use different frameworks.
Schema FormX lets you define form structure as a plain JSON Schema — the framework renders the UI, handles data binding, validation, and inter-field linkage automatically. It is framework-agnostic at the design level: the same schema can drive React, Vue, Svelte, or Solid implementations.
Workflow
FieldSchema[] → Auto-wrap into Group | GroupSchema[] → Render by Groups
Component lookup: Custom Component → DefaultControl → Error Display
Rendering Flow:
- Pass Schema configuration to the Form component
- Form automatically detects the Schema type (field array or group array)
- Each group renders a Group container
- Each field looks up the corresponding UI component via the
componentproperty - Component lookup order: custom component → DefaultControl → error display
Core Concepts
Schema
Schema is the core configuration of a form, defining its structure and behavior. There are two forms: FieldSchema (field form) and GroupSchema (group form).
FieldSchema — each element represents a form field:
GroupSchema — groups multiple fields together with independent component and styling per group:
Field
A Field is a single form element, such as an input box, dropdown, or checkbox.
Example:
Layout
Layout controls the styles and arrangement of the form.
Example:
Component
A Component is the actual UI component that renders form fields.
Example:
Usage Scenarios
Schema FormX is useful for the following scenarios:
Complex Form Construction
When a form contains many fields, complex validation rules, and linkage logic, Schema FormX can simplify development.
Dynamic Form Generation
When the form structure needs to be generated dynamically from backend configuration, Schema FormX's configuration-driven model is very helpful.
Multi-framework Projects
When a project needs a unified form solution across React, Vue, Svelte, and Solid, Schema FormX can provide a common schema layer.
Quick Start
Start with the Quick Start chapter to see how to configure a basic form and render it quickly.
Document Structure
This guide is organized into the following sections:
- Quick Start: Learn the basics of using Schema FormX
- Basic Features: Understand form configuration and field types
- Advanced Features: Explore custom components, validation, grouping, and dependency linkage
- API Reference: Learn the Form, Group, and Field APIs