Skip to content
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

Merged
merged 29 commits into from
Jan 23, 2025
Merged

Conversation

gregmartDOTin
Copy link
Contributor

No description provided.

Copy link
Contributor

github-actions bot commented Jan 21, 2025

PR Preview Action v1.6.0
Preview removed because the pull request was closed.
2025-01-23 20:23 UTC

import { FormHTMLAttributes } from 'react';
import { useForm, SubmitHandler, FormProvider, Resolver } from 'react-hook-form';
import { yupResolver } from '@hookform/resolvers/yup';
import * as yup from 'yup';
Copy link
Contributor

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.

Copy link
Contributor Author

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.

@gregmartDOTin gregmartDOTin merged commit aa6fc16 into main Jan 23, 2025
8 checks passed
@gregmartDOTin gregmartDOTin deleted the feat/react-hook-form-components branch January 23, 2025 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants