Replies: 3 comments 1 reply
-
Is the question similar to this question? |
Beta Was this translation helpful? Give feedback.
1 reply
-
There is no good way of implementing this, you can either use |
Beta Was this translation helpful? Give feedback.
0 replies
-
Yes, I ended up using |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When the examples use
useFormContext()
in a custom form input/component, it makes the component essentially tied to a specific form.The other option to write a reusable custom form component is to pass the
form
as a prop.I though I could do away with defining a generic
V
that specifies the current component's fields, but i get typescript errors:(the same code works when using
useFormContext()
)So, how to smartly build reusable form components with mantine form?
Sources:
Beta Was this translation helpful? Give feedback.
All reactions