Forms
Login Card - 1
A beautifully designed login card component with form handling and button styling.
Overview
The Login card component is a responsive and styled UI element for handling user authentication. It features:
- Email and Password fields
- Remember Me checkbox
- A CTA button (uses our customizable
Buttoncomponent) - Smooth transitions and hover effects
Sign in to your account
Don't have an account? Sign up
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 Login component like this:
Props
| Prop | Type | Description | Default |
|---|---|---|---|
title | string | Heading displayed on the login card | "Sign in to your account" |
className | string | Additional Tailwind classes for outer container | "" |