-
Notifications
You must be signed in to change notification settings - Fork 1
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
Feat/react hook form components #630
Conversation
…ok-form-components
…izationAutocomplete
…level props on Checkbox
|
import { FormHTMLAttributes } from 'react'; | ||
import { useForm, SubmitHandler, FormProvider, Resolver } from 'react-hook-form'; | ||
import { yupResolver } from '@hookform/resolvers/yup'; | ||
import * as yup from 'yup'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we want to lock everyone into yup? i thought we weren't touching the resolvers so everyone could choose which one they want and pass the resolved schema to the controlled form.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, users can now pass whatever schema resolver they want.
No description provided.