Examples
Annotated, copy-paste examples covering the most common patterns. Toggle between Code and Preview on each example.
Contact Form
A realistic contact form with display fields (heading, separator), validation, and a checkbox. Display fields are excluded from the submitted data.
Conditional Fields
A field with a condition is hidden until the condition passes. Here, "Other details" only appears when the topic select is set to "other".
Select Other from the Topic dropdown to reveal the extra field.
Multi-locale Form
Provide a locale map for every label, then switch the active locale at runtime. The baseLocale is used as a fallback when a translation is missing.
Custom Validation
Register a validator once at app startup. Reference it by key in any field's validation.customRule. The validator receives the field's value and the full form data object.
Controlled FormBuilder
Wire FormBuilder's onChange into a FormRenderer for a live side-by-side preview. The builder is always the source of truth; the renderer is a read-only consumer.
Live Preview
Add fields in the builder above to see the preview.