Shailendra Kumar

sign in

Sign-in

About

this is sign

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds sign in to your project and fits it to your theme.

Code

How sign in is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

'use client'

import { SignInPage } from "@/components/ui/sign-in";

const SignInPageDemo = () => {
  const handleSignIn = (event: React.FormEvent<HTMLFormElement>) => {
    event.preventDefault();
    const formData = new FormData(event.currentTarget);
    const data = Object.fromEntries(formData.entries());
    console.log("Sign In submitted:", data);
    alert(`Sign In Submitted! Check the browser console for form data.`);
  };

  const handleGoogleSignIn = () => {
    console.log("Continue with Google clicked");
    alert("Continue with Google clicked");
  };

  const handleResetPassword = () => {
    alert("Reset Password clicked");
  };

  const handleCreateAccount = () => {
    alert("Create Account clicked");
  };

  return (
    <div className="bg-background w-full flex-1 justify-center p-4 items-center h-screen  text-foreground">
      <SignInPage
        heroImageSrc="https://cdn.21st.dev/assets/mirror/f8/f8c3307d8145cc5fe32416521e290e23ae70f2ca9c6185d3d2e4d4d3c7a76f0b.jpg"
        onSignIn={handleSignIn}
        onGoogleSignIn={handleGoogleSignIn}
        onResetPassword={handleResetPassword}
        onCreateAccount={handleCreateAccount}
      />
    </div>
  );
};

export default SignInPageDemo;

Dependencies

More by Shailendra Kumar

View all
  • Map

    Map

    1.7K
  • social card

    social card

    735
  • Animated 3D Card

    Animated 3D Card

    547
  • Date Picker

    Date Picker

    167
  • Animated Button

    Animated Button

    131
  • Kanban

    Kanban

    106
  • switch

    switch

    97
  • 404 page not found

    404 page not found

    82

More in Sign-in

View all
  • Modern & Stunning sign in

    Modern & Stunning sign in

    1.6K
  • SignInPage

    SignInPage

    631
  • Sign In Form

    Sign In Form

    201
  • Clean & Minimal sign in

    Clean & Minimal sign in

    617
  • Sign In

    Sign In

    97
  • Authentication Card

    Authentication Card

    47
  • Split Sign In Form

    Split Sign In Form

    16
  • Modern Animated Sign In

    Modern Animated Sign In

    1.1K