remix-forms
remix-forms copied to clipboard
Pass a `Fields` component through Form children
This component would:
- Render all fields in the schema precisely as if we hadn't passed children to the form. This is useful because sometimes we just want to customize the errors, the button, or the overall form layout. But not the fields. In this situation, we're currently forced to render all fields manually.
- If we pass children to it, we only pass the
Field
s we want to customize, but it will render all form fields in the same order as the schema. This will allow us to customize only the fields we want and rely on the convention for the rest.
This should not change the current Form
children render logic. It will only add this option to make our forms even DRYer.