mui / mui/material-ui

1st class support for React-Hook-Form

Open
#37,909 7 comments 22 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

not planned scope: all components type: new feature waiting for 👍
Dominant language
JavaScript
Stars
99.1k
Forks
32.5k
Avg merge
2d 17h
Merged PRs (30d)
106

Description

Summary 💡

Hi!

I want to use React-Form-Hool (that seems to be the leader in this space) to validate my forms.

I would like MUI to provide its own version of the register function that binds a input control to a useForms element.

Examples 🌈

There is a pr in the main repo with documentation how to use RFH, but there is a lot of boilerpøate that is prone to errors.
https://github.com/mui/material-ui/pull/37522

Motivation 🔦

Proper form validation with MUI controls with the least amount of code

(we will generate Zod schemas automaticaly based on our OpenApi schemas to tie everything together!)

Order ID 💳 (optional)

56440

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review the React Hook Form usage documentation in PR 37522 and compare it with the requested MUI integration. Clarify the proposed register API and its scope; done should mean a defined first-class integration that reduces the documented boilerplate and has corresponding usage documentation.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.