Credit Card Glass
Free Users React component — CreditCardGlass. MIT licensed, copy-paste ready for Next.js and Tailwind CSS.
Glassmorphism payment card with chip, masked number, holder name, and expiry. Glow on hover — fintech landing pages eat this up.
Preview
4532 •••• •••• 7891
Card Holder
Bidyut Kundu
Expires
09/28
Setup
How to use
Free for personal and commercial use. No UI attribution required. Include the MIT copyright notice when copying component source into your project. Read the MIT license.
- 1
Run in your terminal:
$npm install clsx tailwind-merge lucide-react - 2
Copy
lib/cn.tsbelow. Skip if you already havecn(). - 3
Copy the code below and create
components/users/credit-card-glass.tsxin your project. - 4
Import and render:
Exampleimport { CreditCardGlass } from "@/components/users/credit-card-glass";
lib/cn.ts
import { cn } from '@/lib/cn';// Full source is available in the repository checkout.
components/users/credit-card-glass.tsx
// Full source: components/components/users/credit-card-glass.tsx// The Cloudflare worker does not expose the source tree at request time.