@piplup/rhf-adaptersmui-one-time-password-input
Installation — @piplup/rhf-adapters (mui-one-time-password-input)
React Hook Form adapters for mui-one-time-password-input components and custom OTP input composition.
@piplup/rhf-adapters/mui-one-time-password-input connects mui-one-time-password-input components to react-hook-form.
npm install @piplup/rhf-core react-hook-formThen, install the adapters package together with the MUI Material and mui-one-time-password-input peer dependencies:
npm install @piplup/rhf-adapters @mui/material @emotion/react @emotion/styled @mui/x-date-pickers mui-one-time-password-inputImport
import { MuiOtpInputElement, useMuiOtpInputAdapter } from "@piplup/rhf-adapters/mui-one-time-password-input";Use /mui-one-time-password-input subpath when you need mui-one-time-password-input components to stay in sync with react-hook-form.