Forms
LoginCard - 2
A clean, animated forms card using Tailwind CSS and Framer Motion.
Overview
The Login card component is a responsive and styled UI element for handling user authentication. It features:
- Email and Password fields
- Smooth transitions and hover effects
Welcome Back!
Please sign in to continue
Forgot password? Or Sign Up
Dependencies
CLI Installation
Make sure ShadCN and the custom UI system are set up in your project. Then run:
Manual Installation
To manually set up the Login component in your project, follow these steps:
- Go to your
srcdirectory. - Create a folder structure:
components/ui/loginCard. - Inside the
loginCardfolder, create a file namedlogin.tsx. - Paste the following code into
login.tsx.
Usage
Import and use the Logincard component like this:
Props
| Prop | Type | Description | Default |
|---|---|---|---|
title | string | Heading displayed on the login card | "welcome" |
subtitle | string | Heading displayed on the login card | "Sign in to your account" |
className | string | Additional Tailwind classes for outer container | "" |