npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@paramhq/forms

v3.0.0

Published

React Hook Form + MUI + Zod form components library

Readme

@paramhq/forms

React Hook Form + MUI + Zod form components library.

A comprehensive collection of pre-built form components that integrate React Hook Form with Material-UI and Zod validation.

Features

  • Type-Safe Forms - Full TypeScript support with Zod schema inference
  • MUI Integration - Native Material-UI components with all props supported
  • Validation - Automatic Zod validation with real-time error display
  • India-Specific Fields - Aadhaar, PAN, GST, IFSC, Pincode with built-in validation
  • Date/Time Pickers - MUI X Date Pickers integration
  • Field Arrays - Dynamic form fields with add/remove
  • Async Support - Async autocomplete, async form submission

Installation

npm install @paramhq/forms

# Peer dependencies
npm install react-hook-form @hookform/resolvers zod @mui/material @emotion/react @emotion/styled

Quick Start

import { Form, RHFTextField, RHFSelect } from '@paramhq/forms';
import { z } from 'zod';

const schema = z.object({
  name: z.string().min(1, 'Name is required'),
  email: z.email({ error: 'Invalid email' }),
  role: z.string().min(1, 'Select a role'),
});

function MyForm() {
  const handleSubmit = (data) => {
    console.log(data);
  };

  return (
    <Form
      schema={schema}
      defaultValues={{ name: '', email: '', role: '' }}
      onSubmit={handleSubmit}
    >
      <RHFTextField name="name" label="Name" />
      <RHFTextField name="email" label="Email" type="email" />
      <RHFSelect
        name="role"
        label="Role"
        options={[
          { value: 'admin', label: 'Admin' },
          { value: 'user', label: 'User' },
        ]}
      />
      <Button type="submit">Submit</Button>
    </Form>
  );
}

Available Components

| Category | Components | |----------|------------| | Text Input | RHFTextField, RHFNumberField, RHFPasswordField, RHFTextArea | | Selection | RHFSelect, RHFRadioGroup, RHFCheckbox, RHFCheckboxGroup, RHFSwitch | | Autocomplete | RHFAutocomplete, RHFMultiAutocomplete, RHFAsyncAutocomplete, RHFCreatableAutocomplete | | Date/Time | RHFDatePicker, RHFTimePicker, RHFDateTimePicker | | Advanced | RHFFieldArray, RHFSlider, RHFRating, RHFFileUpload, RHFMaskedField | | India-Specific | RHFAmountField, RHFAadhaarField, RHFPanField, RHFMobileField, RHFIfscField, RHFPincodeField, RHFGstField |

India-Specific Features

IFSC Code with Bank Lookup

<RHFIfscField
  name="ifsc"
  label="IFSC Code"
  onBankDetails={(details) => {
    console.log(details.bank, details.branch);
  }}
/>

Pincode with Location Lookup

<RHFPincodeField
  name="pincode"
  label="Pincode"
  onLocationDetails={(details) => {
    console.log(details.city, details.state);
  }}
/>

Aadhaar with Verhoeff Validation

<RHFAadhaarField
  name="aadhaar"
  label="Aadhaar Number"
  masked={true}  // Shows XXXX XXXX 1234
/>

Masked Input

Requires react-imask for input masking:

npm install react-imask
<RHFMaskedField
  name="phone"
  label="Phone Number"
  mask="(000) 000-0000"
  placeholder="(___) ___-____"
/>

<RHFMaskedField
  name="creditCard"
  label="Credit Card"
  mask="0000 0000 0000 0000"
/>

<RHFMaskedField
  name="ssn"
  label="SSN"
  mask="000-00-0000"
  lazy={false}  // Shows mask immediately
/>

Mask patterns: 0 = digit, a = letter, * = any character

Date Pickers

Requires @mui/x-date-pickers and a date adapter:

npm install @mui/x-date-pickers dayjs
import { LocalizationProvider } from '@mui/x-date-pickers';
import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs';

// Wrap your app
<LocalizationProvider dateAdapter={AdapterDayjs}>
  <App />
</LocalizationProvider>
import dayjs from 'dayjs';

<RHFDatePicker
  name="birthDate"
  label="Date of Birth"
  disableFuture
  maxDate={dayjs().subtract(18, 'year')}
/>

Documentation

Demo

Run the demo app:

cd apps/demo
npm install
npm run dev

Visit http://localhost:5173

License

MIT