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:
$type | Purpose |
|---|---|
input | Text, email, password, URL and telephone inputs |
textarea | Multi-line text |
number | Numeric input |
select | Select menu |
checkbox, checkbox-group | Boolean and multi-choice inputs |
switch | Boolean toggle |
radio | Single-choice group |
slider | Numeric range |
combobox | Searchable choice input |
drop-zone | File drop input |
fieldSet | Grouped content |
input-otp | One-time-password input |
phone-input, masked-input | Specialized text inputs |
arrayElements | Repeated element groups |
submit, submission-alert | Action 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
| Use | Package |
|---|---|
| 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
- Installation and quick start: install peers, load theme CSS, render a form.
- Server rendering and engine binding: assign the engine to server-rendered forms.
- Form controls: native events,
rui-formand the container, and custom controls. - Layouts: shells, wizard and appearance in Radiant.
- API reference: every export.
- Layout: widths, areas, appearance axes, theming and recipes.