Form with useFieldArray #1380
-
I tried to look but I couldn't find an example of the form using the What I found was a reference to this tweet: https://twitter.com/shadcn/status/1659639530734116864 |
Beta Was this translation helpful? Give feedback.
Answered by
joaopedrodcf
Aug 31, 2023
Replies: 1 comment 2 replies
-
There is already an example on the website: And the code for that can be found here: calling the useForm and the useFieldArray Displaying it and adding elements on click on the button Thanks @shadcn for the reply on twitter/x |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
joaopedrodcf
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There is already an example on the website:
And the code for that can be found here:
https://github.com/shadcn-ui/ui/blob/main/apps/www/app/examples/forms/profile-form.tsx#L72
calling the useForm and the useFieldArray
Displaying it and adding elements on click on the button
Thanks @shadcn for the reply on twitter/x