Installation

You can add Modular Forms to your project via npm. If you use yarn or pnpm, just replace the installation command at the beginning.

npm install @modular-forms/preact

Since Modular Forms is implemented with Preact Signals, you need to install the following peer dependency as well.

npm install @preact/signals

After that you can import it into any JavaScript or TypeScript file.

import {} from '@modular-forms/preact';