@piplup/rhf-adaptershtml
Installation — @piplup/rhf-adapters (HTML)
Install @piplup/rhf-adapters and start using the HTML adapter subpath with React Hook Form.
@piplup/rhf-adapters provides prebuilt adapter hooks and components that connect UI elements to React Hook Form. The package is organized by subpath, so you only import the adapter family you need.
First, install the core packages, if not installed already:
npm install @piplup/rhf-core react-hook-formThen, install the adapters package:
npm install @piplup/rhf-adaptersImport
Import HTML adapters from the html subpath:
import {
HtmlInputElement,
HtmlTextareaElement,
useHtmlInputAdapter,
} from "@piplup/rhf-adapters/html";The root @piplup/rhf-adapters entrypoint is not where the practical component and hook APIs live. Use the package /html subpath instead.