@nish1896/rhf-mui-components
v4.0.0
Published
A suite of 25+ production-ready react-hook-form components built with material-ui. Fully typed, tree-shakable, and optimized for enterprise-grade forms.
Maintainers
Readme
@nish1896/rhf-mui-components
A suite of 25+ reusable Material UI and other third-party components for react-hook-form to minimize your time and effort in creating beautiful forms.
Features ✨
- Each component is fully functional with just 2-3 props — core logic handled internally.
- Style individual components or apply global styles via ConfigProvider.
- Includes well-configured unique components like RichTextEditor, Country Select and File Uploader, saving development time.
- Provides full control over value validation and transformation before updates are committed to form state.
- Comprehensive docs showcasing multiple variations for each component.
🚀 Version 4 Released
v4 is now available with deeper MUI integration, more consistent callback APIs, stronger accessibility defaults, and new customization options across the component set.
Highlights
- Supports MUI
v6andv7. MUIv5support has been removed fromv4. - Added
customOnChangefor all components, allowing developers to intercept, validate, or transform values before they are committed to form state. - Added external
refforwarding support across supported components. - Added
customIdsand improved element-level ARIA attributes for better accessibility. - Added support for
freeSoloinRHFAutocompleteandRHFMultiAutocomplete, allowing users to enter values that are not present in the provided options. - Added Desktop, Mobile, and Static Date/Time picker variants.
RHFFileUploadernow supports drag-and-drop uploads,existingFiles,dropZoneProps, and file-specific upload errors.RHFPhoneInputnow stores a structured value object withphone,country,dialCode, andphoneNo, and includes searchable country selection.
If you are upgrading from v3, please review the v4 migration guide before updating.
Need MUI
v5support? Continue using the latestv3release of this package.
Explore and Get Started 🚀
Documentation 📖
Access the full documentation for rhf-mui-components, including setup instructions, API references, and examples:
Interactive Demos 🎮
Try out and experiment with the form components in a live environment:
Sample Apps 🛠️
Clone this repo to explore real-world usage of the package with Next.js and MUI v6 / v7. If you need MUI v5, use the latest v3 version of this package.
Form Components List
Below is a comprehensive list of all components included in this package, categorized by module:
mui
mui-pickers
misc
This project has been an individual effort so far, and I’d love to invite collaborators to contribute by adding new components or improving the documentation and examples for existing ones. If you're interested, feel free to reach out at [email protected].
You can also check out my eslint config, to format and prettify your javascript code.
