Skip to content

Component 056Forms

Glassy Login Form v3

A frosted-glass sign-in and sign-up card with chamfered corners. Switching forms melts the content away, slides the two corner tabs together, sends out a ripple, and reveals the new form.

  • Next.js
  • Tailwind CSS
  • TypeScript
Select Sign Up or Sign In under the form to watch the liquid-glass switch.
Loading preview…
Live interactive preview

Quick start

Make it yours.

Save glassy-login-v3.tsx in your components folder, then import it below. Use it in a Next.js project with Tailwind CSS.

TSXapp/page.tsx
import GlassyLoginV3 from "@/components/ui/glassy-login-v3";

export default function LoginPage() {
  return (
    <GlassyLoginV3
      onSignIn={async ({ email, password, remember }) => {
        await signIn(email, password, remember);
      }}
      onSignUp={async ({ name, email, password }) => {
        await createAccount(name, email, password);
      }}
      onSocialSignIn={(provider) => startOAuth(provider)}
    />
  );
}

// Reject from a callback to show its message under the title.
// Omit the callbacks to try the local demo.

Behind the interaction

The details that make it work.

Designed to explore, ready to adapt.

A switch you can watch

The form blurs out, both corner tabs light up and travel to the centre, merge into one glowing tile, ripple outward, then settle back as the next form fades in line by line.

Glass with a silhouette

Backdrop blur is clipped to a chamfered outline with rounded joins, a gradient edge, and separate glass tabs in the cut corners. The chrome-and-neon scene behind it is drawn in SVG.

Forms that work

Labelled inputs, password reveal, inline validation under the title, busy and success states, provider buttons, and focus that lands on the new heading. Plus Jakarta Sans is bundled with the export.

Keep exploring

View all components