Skip to content

This Next.js template integrates Mantine and Formik in Typescript

License

Notifications You must be signed in to change notification settings

Rayologist/formik-mantine-typescript-template

Repository files navigation

Mantine-styled Formik Components in Typescript

Notice: This repository is no longer maintained, beacuse the author has switched to using react-hook-from and zod. Here is the repository that is being actively mantained

This mantine-next-template integrates Formik as a means of form contol and Yup as form validtion. Input components developed by Mantine can be easily controlled through <FormikController />.

The useSimpleForm Hook

A custom hook useSimpleForm is implemented to solve the problem of boilerplate codes when developers are constructing Formik forms, as shown in src/pages/index.tsx. The simple form example is adapted from Mantine UI, and can be found in src/pages/simple-form.tsx.

Sample Form

Getting Started

First, run the development server:

pnpm dev
# or
npm run dev
# or
yarn dev

Open http://localhost:3000 with your browser to see the result.

Contact

If you have any questions, please feel free to contact me at rayologist1002@gmail.com

About

This Next.js template integrates Mantine and Formik in Typescript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published