Form#

@palmyralabs/rt-forms · src/palmyra/form/ — a controlled-form framework driven by context, not props. PalmyraForm publishes a FormManager via context, field widgets register themselves into it, and role-specialised wrappers (PalmyraNewForm, PalmyraEditForm, PalmyraViewForm) wire the create / read / update / upsert flows to a Wire store.

Page Role
PalmyraForm The root controlled form — publishes FormManagerContext and a default FieldGroup
PalmyraNewForm Create flow — POSTs to an endpoint, exposes saveData on the ref
PalmyraEditForm Load-then-edit flow — fetches by id, then PUTs or save-upserts
PalmyraViewForm Read-only fetch-and-display
FieldGroup Registers a named group of fields with the parent form