@unleashit/forgot-password
v2.0.4
Published
Responsive forgot password and reset components for React with custom fields.
Downloads
66
Maintainers
Readme
Forgot Password
Customizable set of React forgot password components that validate against a default or custom Zod schema. Accepts custom fields and includes reset request, token submission and confirmation views as needed.
Features
- Displays and handles client and serverside errors
- Custom fields and schema
- Show success components and/or provide onSuccess functions to redirect, set state, etc.
- Custom header/footer
- Loader (default or custom)
- Show a link to login instead
- Client router support for links
- Toast support
Install
npm install @unleashit/forgot-password
Required peer dependencies: react, react-hook-form, @hookform/resolvers and zod.
Documentation
https://unleashit.github.io/npm-library/components/forgotPassword
Demo
https://npm-library-demo.vercel.app/forgot-password