remix-forms icon indicating copy to clipboard operation
remix-forms copied to clipboard

Pass a `Fields` component through Form children

Open danielweinmann opened this issue 2 years ago • 1 comments

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 Fields 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.

danielweinmann avatar Dec 05 '22 14:12 danielweinmann