Login Form

A dark-themed login component with email/password, Google OAuth, show/hide password, and a loading state.

Welcome back

Sign in to your account to continue

or continue with email

Don't have an account?

Installation

bash
npx shadcn@latest add "https://dexterityui.vercel.app/r/login.json"

Props

PropTypeDescription
onSubmit(values) => voidCalled with { email, password } on form submit.
onGoogleSignIn() => voidCalled when the Google button is clicked.
onForgotPassword() => voidCalled when 'Forgot password?' is clicked.
onSignUp() => voidCalled when the 'Sign up' link is clicked.
classNamestringAdditional classes for the root container.