Skip to content

NewMCP server for your coding agent. Set it up ›

Nexus UI
Get Pro

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.

Halo

Welcome back

Sign in to pick up where you left off.

New here?

Props

PropTypeDefaultWhat it does
brand"Halo"Brand initial and name.
title"Welcome back"Card heading.
subtitle"Sign in to pick up where you left off."Line under the heading.
onSubmit—Called after local validation. A promise shows the pending state; throw an Error to show its message. Without it the form simulates success.
onPasskey—Called by the passkey button; the scan animation runs until the promise settles.
onForgotPassword—Called by Forgot password?.
onSignUp—Shows a Create an account link under the button when set.
backdroptrueDraw the aurora backdrop. Turn off to place the card on your own background.
autoplayfalseTypes a demo sign-in and plays it through on a loop until someone touches the form.
className—Extra classes on the root.

Add it to your project

  1. 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 creates components.json and the cn() helper in src/lib/utils.ts:

    npx shadcn@latest init -d

    Starting from nothing? The Quick Start walks through the whole thing.

  2. 2

    Connect the registry

    Run this once per project. It writes the Nexus UI entry into components.json for 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.

  1. 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
  2. 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.tsx
    index.ts
  3. 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:

  4. 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