Overview
React-Formik-UI is a simple component library that makes it easier to compose forms with React and Formik. It provides a set of pure HTML form elements such as form, input, select, checkbox, radio, and textarea. The library utilizes Formik’s context, so you need to have Formik installed in your project. The latest version (v5) of React-Formik-UI is written in Typescript and includes several breaking changes from v4. The library also allows for custom styling through CSS or SCSS by passing a custom className or using the styling prop.
Features
- Component library for composing forms with React and Formik
- Includes pure HTML form elements like form, input, select, checkbox, radio, and textarea
- Makes use of Formik’s context
- Written in Typescript (v5)
- Allows for custom styling through CSS or SCSS
- Provides default classes and classNames for easy styling
Installation
To install React-Formik-UI, ensure that your project uses at least React version 16.13.1 or above. React Formik UI has Formik, React, and react-dom as peer dependencies, so make sure to have those packages installed in your project.
npm install react-formik-ui formik react react-dom
Summary
React-Formik-UI is a component library that simplifies the composition of forms with React and Formik. It provides a set of pure HTML form elements and utilizes Formik’s context. The library is written in Typescript and allows for custom styling through CSS or SCSS. To install React-Formik-UI, ensure that your project uses the required versions of React, Formik, and react-dom.