Skip to content

Conversation

@jthrilly
Copy link
Member

@jthrilly jthrilly commented Aug 12, 2025

This PR is a second attempt at a new form system to replace the old, redux-form, based approach.

  • <Form> component, supporting async onSubmit handler
  • <Field> component, which connects any standard or custom input to the form system. When rendered within <Form /> automatically handles registering/unregistering.
  • Supports nested field names
  • <FieldSet /> component, designed for grouping <Field /> components, and conditionally rendering them.
  • useForm, useField, and useFormValue hooks to enable clean composition patterns, and features such as conditional rendering
  • Validation using zod functions
  • Accessibility support with appropriate aria properties being added by custom hooks
  • useProtocolForm custom hook, which translates a protocol form definition to a renderable list of Field components.
  • Implementation of form field variants via cva beta 1.0.0
  • Make a plan for validation functions. Zod schemas are great, but what about localisation and compatibility with existing validation?

@vercel
Copy link

vercel bot commented Aug 12, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
fresco-sandbox Error Error Nov 20, 2025 1:01pm
fresco-storybook Error Error Nov 20, 2025 1:01pm
1 Skipped Deployment
Project Deployment Preview Comments Updated (UTC)
barf Ignored Ignored Nov 20, 2025 1:01pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants