UNPKG

@nish1896/rhf-mui-components

Version:

A suite of 25+ production-ready react-hook-form components built with material-ui. Fully typed, tree-shakable, and optimized for enterprise-grade forms.

82 lines (62 loc) โ€ข 5.36 kB
<p align="center"> <img src="https://raw.githubusercontent.com/nishkohli96/rhf-mui-components/refs/heads/main/apps/rhf-mui-demo/public/logo.svg" width="200" /> </p> <h1>@nish1896/rhf-mui-components</h1> <p> <b>A suite of 25+ production-ready <a href="https://mui.com/">Material UI</a> components for <a href="https://react-hook-form.com/">react-hook-form</a> โ€” fully typed, tree-shakable, and built to cut form boilerplate down to a handful of props.</b> </p> <p> <img alt="NPM Version" src="https://img.shields.io/npm/v/%40nish1896%2Frhf-mui-components" /> <img alt="NPM Downloads" src="https://img.shields.io/npm/dt/%40nish1896%2Frhf-mui-components" /> <img alt="NPM Downloads Per Month" src="https://img.shields.io/npm/dm/%40nish1896%2Frhf-mui-components?color=%23e0e063" /> <img alt="GitHub Release Date" src="https://img.shields.io/github/release-date/nishkohli96/rhf-mui-components" /> <img alt="TypeScript Strict" src="https://img.shields.io/badge/TypeScript-Strict-3178C6?logo=typescript&logoColor=white" /> <img alt="License" src="https://img.shields.io/badge/License-MIT-blue.svg" /> </p> ## Features โœจ - Each component is fully functional with just 2-3 props โ€” core logic handled internally. - Style individual components or apply global styles via [ConfigProvider](https://rhf-mui-components.vercel.app/customization#configprovider). - Includes well-configured unique components like [RichTextEditor](https://rhf-mui-components.vercel.app/components/misc/RHFRichTextEditor), [Country Select](https://rhf-mui-components.vercel.app/components/mui/RHFCountrySelect), [File Uploader](https://rhf-mui-components.vercel.app/components/mui/RHFFileUploader) and [Tags Input](https://rhf-mui-components.vercel.app/components/mui/RHFTagsInput), 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. ## ๐Ÿš€ Explore and Get Started ### ๐Ÿ“– Documentation Full setup instructions, API references, and examples for every component: ๐Ÿ‘‰ [Documentation Website](https://rhf-mui-components.vercel.app/) ### ๐ŸŽฎ Interactive Demos Try out the form components live, no install required: ๐Ÿ‘‰ [Live Demo Examples](https://rhf-mui-components-examples.vercel.app/) ### ๐Ÿงช Playground Spin up an editable sandbox in your browser โ€” fork it and experiment freely: [![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/nishkohli96/rhf-mui-components/tree/v4-examples) ## Form Components List Below is a comprehensive list of all components included in this package, categorized by module: - **mui** - [TextField](https://rhf-mui-components.vercel.app/components/mui/RHFTextField) - [NumberInput](https://rhf-mui-components.vercel.app/components/mui/RHFNumberInput) - [PasswordInput](https://rhf-mui-components.vercel.app/components/mui/RHFPasswordInput) - [Tags Input](https://rhf-mui-components.vercel.app/components/mui/RHFTagsInput) - [File Uploader](https://rhf-mui-components.vercel.app/components/mui/RHFFileUploader) - [Select](https://rhf-mui-components.vercel.app/components/mui/RHFSelect) - [Native Select](https://rhf-mui-components.vercel.app/components/mui/RHFNativeSelect) - [Autocomplete](https://rhf-mui-components.vercel.app/components/mui/RHFAutocomplete) - [Autocomplete Object](https://rhf-mui-components.vercel.app/components/mui/RHFAutocompleteObject) - [Multi Autocomplete](https://rhf-mui-components.vercel.app/components/mui/RHFMultiAutocomplete) - [Multi Autocomplete Object](https://rhf-mui-components.vercel.app/components/mui/RHFMultiAutocompleteObject) - [Country Select](https://rhf-mui-components.vercel.app/components/mui/RHFCountrySelect) - [Checkbox](https://rhf-mui-components.vercel.app/components/mui/RHFCheckbox) - [Checkbox Group](https://rhf-mui-components.vercel.app/components/mui/RHFCheckboxGroup) - [Radio Group](https://rhf-mui-components.vercel.app/components/mui/RHFRadioGroup) - [Slider](https://rhf-mui-components.vercel.app/components/mui/RHFSlider) - [Switch](https://rhf-mui-components.vercel.app/components/mui/RHFSwitch) - [Rating](https://rhf-mui-components.vercel.app/components/mui/RHFRating) - **mui-pickers** - [Date](https://rhf-mui-components.vercel.app/components/mui-pickers/RHFDatePicker) - [Time](https://rhf-mui-components.vercel.app/components/mui-pickers/RHFTimePicker) - [DateTime](https://rhf-mui-components.vercel.app/components/mui-pickers/RHFDateTimePicker) - **misc** - [Color Picker](https://rhf-mui-components.vercel.app/components/misc/RHFColorPicker) - [Rich Text Editor](https://rhf-mui-components.vercel.app/components/misc/RHFRichTextEditor) - [Phone Input](https://rhf-mui-components.vercel.app/components/misc/RHFPhoneInput) **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 [nishantkohli96@gmail.com](mailto:nishantkohli96@gmail.com).** You can also check out my [eslint config](https://www.npmjs.com/package/@nish1896/eslint-flat-config), to format and prettify your javascript code.