The CWA is in heavy development
The CWA is still in alpha and not ready for production - some code and implementations are likely to change. If you would like to try out the CWA, please enjoy what we have provided and feel free to provide feedback, or get involved on GitHub.
DraftCwa Api

cwa.forms

Access the structured form view data and field errors for Form component resources.

Access the structured form view data for Form component resources.

getForm(iri)

Returns a ComputedRef of the structured form view, keyed by field name:

const formView = cwa.forms.getForm('/component/forms/018e-...')

// Access a field's vars
const nameField = formView.value?.['contact[name]']
nameField?.vars.value     // current value
nameField?.vars.errors    // string[]
nameField?.vars.required  // boolean
nameField?.vars.block_prefixes  // ['form', 'text', '_contact_name'] — for type-specific rendering

getFormViewErrors(formIri, field)

Convenience computed that returns the error array for a specific field, or undefined if there are none:

const nameErrors = cwa.forms.getFormViewErrors('/component/forms/018e-...', 'contact[name]')
// nameErrors.value → ['This field is required'] or undefined