Forms Radiant

The Radiant renderer for Forms, for Ecopages apps that use @ecopages/radiant-ui. It wraps the Radiant UI primitives and ships its field registrations in the package, so there is no copy step. It renders the same form config as Forms React and keeps the form state in the engine's own container.

What ships

schemaFormRegistrations lists 18 element registrations:

$typePurpose
inputText, email, password, URL and telephone inputs
textareaMulti-line text
numberNumeric input
selectSelect menu
checkbox, checkbox-groupBoolean and multi-choice inputs
switchBoolean toggle
radioSingle-choice group
sliderNumeric range
comboboxSearchable choice input
drop-zoneFile drop input
fieldSetGrouped content
input-otpOne-time-password input
phone-input, masked-inputSpecialized text inputs
arrayElementsRepeated element groups
submit, submission-alertAction and submission feedback

date and date-range exist only in the React registry: Radiant has no element for them. A Radiant element is a registration like any other, so you can write your own, as Form controls shows for a custom control.

createRadiantFormEngine({ elements }) is createFormEngine with the Radiant defaults: it binds the canonical view recipes in the package, whose specs come from @schema-engine/forms/recipes/built-in, and it takes the registrations you pass. Radiant has no copy step, so the recipes ship with it. See Layouts.

When to use

UsePackage
React, with widgets of your own or from the registry@schema-engine/forms-react
Radiant / @ecopages/jsx + @ecopages/radiant-ui@schema-engine/forms-radiant

Programmatic form access

Import FormController and FormEngineController from @schema-engine/forms-radiant. Create new FormController(host) for a host inside the form's se-form-instance. It gives the host the form's container, select signals, the wizard and submission signals, clearSubmission(), formatIssue and, for the agent tool, watchRuntime.

Create new FormEngineController(host) for a host inside se-form-renderer. Its engine and ready getters expose the nearest renderer engine, while connect() and disconnect() manage the context subscription.

Use form.container for commands and reads (getValue(path), setValue, validate, fieldArray(path)), select(selector) for a signal over the container's snapshot, and formatIssue(issue, { path }) for an issue's text. Values are nested and paths are dotted (contacts.0.email), the engine container's own shape. Radiant rendering goes through FormRenderer and does not emulate React hooks.

Where to go next