Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@rhf-kit/mui

Package Overview
Dependencies
Maintainers
0
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rhf-kit/mui

A react-hook-form wrapper for MUI components that serves as a layer of abstraction to react-hook-form functions

  • 1.6.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
26
decreased by-71.74%
Maintainers
0
Weekly downloads
 
Created
Source

@rhf-kit/mui

NPM Version NPM Downloads NPM Dependents Build Commitizen friendly Types

× DOCS ×


@rhf-kit/mui is a library of Material-UI components integrated with React Hook Form to provide seamless form control to your React apps.

Install

npm i @rhf-kit/mui

@rhf-kit/mui requires the following peer dependencies:

  • react ^18.2.0
  • react-hook-form ^7.51.3
  • @mui/icons-material ^5.15.15
  • @mui/material ^5.15.15
  • @mui/x-date-pickers ^7.2.0

Components

Usage

import { FormContainer, FormButton, FormTextFieldElement } from "@rhf-kit/mui";

interface IFormData {
  firstName: string;
}

const Example = () => {
  const onSubmit = (data: IFormData) => console.log(data);
  const defaultValues: IFormData = {
    firstName: "",
  };

  return (
    <FormContainer defaultValue={defaultValues} onSubmit={onSubmit}>
      <FormTextFieldElement name="firstName" label="First Name" />
      <FormButton>Submit</FormButton>
    </FormContainer>
  );
};

Keywords

FAQs

Package last updated on 19 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc