@piplup/rhf-adaptersmui-color-input
Installation — @piplup/rhf-adapters (mui-color-input)
React Hook Form adapters for mui-color-input components.
@piplup/rhf-adapters/mui-color-input connects mui-color-input fields to React Hook Form.
First, install the core packages, if not installed already:
npm install @piplup/rhf-core react-hook-formThen, install the adapters package together with the MUI Material and mui-color-input peer dependencies:
npm install @piplup/rhf-adapters @mui/material @emotion/react @emotion/styled @mui/x-date-pickers mui-color-inputImport
import { MuiColorInputElement, useMuiColorInputAdapter } from "@piplup/rhf-adapters/mui-color-input";Use /mui-color-input subpath when you need mui-chips-input components to stay in sync with react-hook-form.