Registration Flow
These previews use Radiant because the docs app is Ecopages + Radiant UI.
Use a wizard recipe when a form has multiple steps. Step data remains focused on fields; the recipe owns progress and navigation chrome.
Interactive demo
Configuration pattern
const formConfig: FormConfig = {
id: 'registration',
title: 'Create your account',
view: {
$type: 'wizard'
},
steps: [
{
id: 'account',
title: 'Account',
elements: [
{
$type: 'input',
id: 'email',
name: 'email',
label: 'Email',
inputType: 'email',
rules: [
{
type: 'required',
message: 'Email is required'
},
{
type: 'email',
message: 'Enter a valid email'
}
]
}
]
},
{
id: 'profile',
title: 'Profile',
elements: [
{
$type: 'input',
id: 'name',
name: 'name',
label: 'Full name'
}
]
}
],
actions: [
{
id: 'submit-registration',
$type: 'submit',
endpoint: '/api/register',
method: 'POST',
enabled: true
},
{
id: 'reset-after-success',
$type: 'reset',
enabled: true,
triggers: [
'form_submit_success'
],
resetToDefaults: true
}
]
};The wizard recipe must be registered in the engine and the form must contain
at least two steps. Action triggers use the canonical form_* and step_*
names from the forms package.
A wizard like this one runs in React on React Forms.
See View recipes for other wizard compositions and Actions for registration and lifecycle behavior.