New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add renderForm
prop to Form
#122
Comments
Wouldn't |
Maybe. It felt redundant to me since it will be the render prop of Form. But maybe redundancy is good in this case :) |
I think we should start investigating a generic API for markup customization, that would preclude adding props every time we want to customize some new element. Perhaps exposing mapper functions that could be composed and passed around or set as part of the default form? |
The
renderForm
function would receive the same arguments aschildren
+Form
(which would be the value ofcomponent
prop passed either to the form or tocreateForm
) +fetcher
(which would be the value of thefetcher
prop).It would be called whenever there are no children passed to the form, just like
renderField
is called when there are no children passed toField
.That would allow us to customize the default markup of the forms, including custom pending UI like the one described in #37.
The text was updated successfully, but these errors were encountered: