Skip to content

Form with useFieldArray #1380

Closed Answered by joaopedrodcf
joaopedrodcf asked this question in Q&A
Discussion options

You must be logged in to vote

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

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@aktienautobahn
Comment options

@joaopedrodcf
Comment options

Answer selected by joaopedrodcf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants