Glass Login Stack, animated React component
A frosted login card stacked on two ghost cards over a slow aurora: the stack tilts toward the pointer and the ghosts follow a beat late, so the layers peel apart in depth. Passkey first, then email and password with a remember switch; bad input shakes the card, and success swaps it for a drawn-check welcome.
- Free
- Login Forms
- Hover
- Spring
- 3D
- Scroll
Types with a key click for every character, in sync with the text. The click stays off until you switch it on.
Like Glass Login Stack? 256 more are in Pro.
Pro unlocks all 256 Pro components, every template and block, and everything we release next. Glass Login Stack stays free.
Play with it
Move the controls and watch it change. Copy code gives you a snippet with only the props you changed.
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| brand | string | "Halo" | Brand initial and name. |
| title | string | "Welcome back" | Card heading. |
| subtitle | string | "Sign in to pick up where you left off." | Line under the heading. |
| onSubmit | (values: { email: string; password: string; remember: boolean }) => Promise<void> | void | — | Called after local validation. A promise shows the pending state; throw an Error to show its message. Without it the form simulates success. |
| onPasskey | () => Promise<void> | void | — | Called by the passkey button; the scan animation runs until the promise settles. |
| onForgotPassword | () => void | — | Called by Forgot password?. |
| onSignUp | () => void | — | Shows a Create an account link under the button when set. |
| backdrop | boolean | true | Draw the aurora backdrop. Turn off to place the card on your own background. |
| autoplay | boolean | false | Types a demo sign-in and plays it through on a loop until someone touches the form. |
| className | string | — | Extra classes on the root. |
Add it to your project
- 1
Set up your project once
You need a Next.js project with Tailwind CSS and the
@/import alias. In its root folder, run this once. It createscomponents.jsonand thecn()helper insrc/lib/utils.ts:npx shadcn@latest init -d
Starting from nothing? The Quick Start walks through the whole thing.
- 2
Connect the registry
Run this once per project. It writes the Nexus UI entry into
components.jsonfor you:npx shadcn@latest registry add "@nexus-labs=https://www.nexus-ui.com/api/registry/{name}"Type it exactly as shown.
{name}is filled in by the CLI with the component you ask for, so you never replace it.
- 3
Add the component
Run this from your project root. It adds the component, the helpers it imports and its npm packages.
npx shadcn@latest add @nexus-labs/glass-login-stack
- 4
Check what was added
With a project made as in the Quick Start (a
src/folder), these files land in it:components/glass-login-stack/glass-login-stack.tsxindex.ts - 5
Copying by hand? Skip the registry
Instead of steps 2 and 3 you can copy the files yourself, with no registry and no API key. Step 1 still applies, so that
cn()exists. Install the packages:npm install framer-motion
Then show the source and create each file at the path it gives:
- 6
Use it in a page
Installing only adds the files. Import the component in a page and render it. The Usage tab on the preview shows a fuller example with props:
// src/app/page.tsx import { GlassLogin } from "@/components/glass-login-stack"; export default function Page() { return ( <main> <GlassLogin /> </main> ); }
Like Glass Login Stack? 256 more are in Pro.
Pro unlocks all 256 Pro components, every template and block, and everything we release next. Glass Login Stack stays free.
About Glass Login Stack
Glass Login Stack is a minimal authentication panel built with glass morphism styling — backdrop blur, translucent fill, and subtle inner glow — for a layered depth effect without background imagery. Input fields have spring-animated focus states that transition the border and shadow. The stacked panel arrangement creates visual depth on flat backgrounds. It integrates with any Next.js authentication provider, including NextAuth.js, Clerk, and Supabase Auth.
Good for
- Product login and sign-in pages
- Authentication flows
- Account access and password reset forms
- SSO and OAuth entry points