Pedro

Liquid Glass OTP

Component

About

6-digit OTP verification card with a gliding Liquid Glass focus lens, spring physics, paste autofill, and resend timer.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Liquid Glass OTP to your project and fits it to your theme.

Code

How Liquid Glass OTP is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import React from "react";
import { LiquidGlassOtp } from "@/components/ui/liquid-glass-otp";

export function DemoOne() {
  return (
    <div className="relative flex min-h-[460px] w-full items-center justify-center overflow-hidden bg-gradient-to-br from-slate-100 via-zinc-50 to-sky-50/70 p-6 dark:from-zinc-950 dark:via-zinc-900 dark:to-sky-950/30">
      <LiquidGlassOtp
        length={6}
        destination="alex.morgan@company.com"
        onVerify={async (code) => {
          await new Promise((resolve) => setTimeout(resolve, 650));
          return code !== "000000";
        }}
      />
    </div>
  );
}

export default DemoOne;

More by Pedro

View all
  • Liquid Glass Tab Bar

    Liquid Glass Tab Bar

    87
  • Liquid Glass Theme Toggle

    Liquid Glass Theme Toggle

    42
  • Liquid Glass Viewport Toggle

    Liquid Glass Viewport Toggle

    16
  • Liquid Glass Button

    Liquid Glass Button

    12
  • Liquid Glass Pricing

    Liquid Glass Pricing

    11
  • Liquid Glass Toggle Switch

    Liquid Glass Toggle Switch

    10
  • Edge Cluster Status Card

    Edge Cluster Status Card

    7
  • Command Search Input

    Command Search Input

    4