Skip to content

FormStatusData

FormStatusData = object

Defined in: packages/ui/src/types.ts:1081

Data structure for action result feedback (success, error, field errors).

Typically returned from React Router actions and passed to FormStatusProps. Supports both top-level messages and per-field validation errors from @cfast/forms.

FormStatusProps for the component that renders this data.

optional error: string

Defined in: packages/ui/src/types.ts:1085

Error message to display.


optional fieldErrors: Record<string, string[]>

Defined in: packages/ui/src/types.ts:1087

Per-field validation error messages.


optional success: string

Defined in: packages/ui/src/types.ts:1083

Success message to display.