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

@vishwa95/formik-mui-components

v1.1.6

Published

[![npm version](https://img.shields.io/npm/v/@vishwa95/formik-mui-components.svg)](https://www.npmjs.com/package/@vishwa95/formik-mui-components) [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)

Readme

@vishwa95/formik-mui-components

npm version License: MIT

A collection of lightweight, type-safe, and reusable Formik + Material UI (MUI) components. Designed to eliminate boilerplate and make form building in React effortless.


🚀 Installation

Install via npm:

    npm install @vishwa95/formik-mui-components

Or install locally (for development)::

    npm install /path/to/formik-mui-components

🛡️ Critical Security Requirement

This library uses @react-pdf-viewer/core for file previews. Due to transitive vulnerabilities in the underlying pdfjs-dist and tar packages (GHSA-wgrm-67xf-hhpq), you must add the following overrides to your root project's package.json to ensure a secure build:

"overrides": {
  "pdfjs-dist": "4.10.38",
  "tar": "7.5.3"
}

📦 Peer Dependencies

To keep the bundle size small and avoid version conflicts, ensure your project has the following installed:

"peerDependencies": {
  "formik": "^2.4.6",
  "react": "^18.0.0 || ^19.0.0",
  "react-dom": "^18.0.0 || ^19.0.0",
  "@mui/material": "^6.0.0 || ^7.0.0",
  "@mui/icons-material": "^6.0.0 || ^7.0.0",
  "styled-components": "^6.1.0"
}

🔥 Usage

The components are wrappers around MUI elements that automatically connect to the Formik context using the name prop.

Example: Standard Form

import { Formik, Form } from "formik";
import * as Yup from "yup";
import { TextFieldWrapper, CheckboxWrapper, FileUploadWrapper } from "@vishwa95/formik-mui-components";
import { Button } from "@mui/material";

const validationSchema = Yup.object({
  username: Yup.string().required("Required"),
  profilePic: Yup.mixed().required("A file is required"),
});

function MyForm() {
  return (
    <Formik
      initialValues={{ username: "", profilePic: null }}
      validationSchema={validationSchema}
      onSubmit={(values) => console.log(values)}
    >
      <Form>
        <TextFieldWrapper name="username" label="Username" fullWidth />
        
        <FileUploadWrapper 
            name="profilePic" 
            label="Drag and drop your profile picture" 
        />

        <Button type="submit" variant="contained" sx={{ mt: 2 }}>
          Submit
        </Button>
      </Form>
    </Formik>
  );
}

📜 Available Components

This library provides the following Formik-wrapped MUI components:

✅ CheckboxWrapper
🔤 TextFieldWrapper
🔽 SelectWrapper
🔘 RadioGroupWrapper
📅 DatePickerWrapper
🕒 TimePickerWrapper
📆 DateTimePickerWrapper
📌 SwitchWrapper
📄 FileUploadWrapper
🎨 ColorPickerWrapper
🎛 SliderWrapper
➕ More coming soon...

🛠 Development

Clone and Install

git clone https://gitlab.com/your-repo/formik-mui-components.git
cd formik-mui-components
npm install

Build the Library

npm run build

Testing locally in another project

In the library directory:

npm link

In your target project directory:

npm link @vishwa95/formik-mui-components

or

In your project’s package.json, add:

"formik-mui-components": "file:../path-to-your-library"

Then run:

npm install

📢 Versioning & Updates

To install a specific version of the library:

npm install @vishwa95/[email protected]

To always get the latest version:

npm install @vishwa95/formik-mui-components@latest

📝 Contributing

Feel free to open issues and pull requests.

📄 License

MIT © Vishwa Mahanama Muthukumarana


One Final Tip

Since you are using styled-components in your library, ensure that you have it listed in your peerDependencies in package.json as well (v6.0.0 or higher), as users will need it to render the components correctly.

Would you like me to help you create a .npmignore file to make sure you don't upload unnecessary source files to the registry?