Skip to content

Latest commit

 

History

History

readme.md

Login

NPM npm (scoped) npm bundle size

Customizable React login component that validates against a default or custom Zod schema.

login component

Features

  • Displays and handles client and serverside errors
  • Custom fields and schema
  • Show a success component and/or provide an onSuccess function to redirect, set state, etc.
  • Show social logins either above or below email login with optional separator
  • Custom header/footer
  • Loader (default or custom)
  • Show a link to registration
  • Show a forgot password link
  • Client router support for links
  • Toast support

Install

npm install @unleashit/login

Peer dependencies: react, react-hook-form, @hookform/resolvers and zod.

Documentation

https://unleashit.github.io/npm-library/components/login

Demo

https://npm-library-demo.vercel.app/login