ruhith

PolicyPassCard

Cards

About

The PolicyPassCard is a modern, Shadcn UI–styled component designed to provide a clear, concise, and interactive summary of an insurance policy. It elegantly combines essential policy details, client information, and a scannable QR code for quick verification or access. The card is highly configurable, allowing developers to customize client data, policy specifics, QR code URL, and actions such as updating or viewing the policy. Built with accessibility and responsiveness in mind, it features smooth animations, tooltips for actionable elements like copyable policy numbers, and an organized layout for easy readability. This component is perfect for dashboards, customer portals, or mobile applications where users need quick access to policy information in a visually appealing, professional format.

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

Code

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

Usage.tsx

"use client"

import React from "react"
import { PolicyPassCard } from "@/components/ui/policy-pass-card"

const PolicyPassCardDemo = () => {
  const handleCopy = () => {
    alert("Policy number copied!")
  }

  const handleRenew = () => {
    alert("Redirecting to renewal page...")
  }

  return (
    <div className="flex min-h-screen items-center justify-center bg-background p-6">
      <PolicyPassCard
        holderName="Sophia Carter"
        policyNumber="POL-48201937"
        policyType="Comprehensive Car Insurance"
        vehicleName="BMW X5, 2021"
        validTill="30 Nov 2025"
        qrCodeUrl="https://api.qrserver.com/v1/create-qr-code/?size=150x150&data=POL-48201937"
        onCopyPolicy={handleCopy}
        onRenew={handleRenew}
      />
    </div>
  )
}

export default PolicyPassCardDemo

Dependencies

More by ruhith

View all
  • Health Stat Card

    Health Stat Card

    176
  • LoadingLines

    LoadingLines

    155
  • LoadingRadar

    LoadingRadar

    132
  • LoadingBottle

    LoadingBottle

    125
  • BarLoader

    BarLoader

    94
  • Loader

    Loader

    79
  • BouncingCirclesLoader

    BouncingCirclesLoader

    55
  • LoaderProgressiveBar

    LoaderProgressiveBar

    52

More in Cards

View all
  • Course Design Cards

    Course Design Cards

    1.3K
  • Photo Deck

    Photo Deck

    47
  • Folded Card

    Folded Card

    45
  • Statistics Card 10

    Statistics Card 10

    304
  • Statistics Card 2

    Statistics Card 2

    309
  • Statistics Card 7

    Statistics Card 7

    336
  • CTA Section

    CTA Section

    6
  • Liquid Glass Card

    Liquid Glass Card

    198