Vector Motion
Medical

Insurance Denials Card - Claims Management

Track insurance claim denials and appeal processes. Monitor denial trends and revenue recovery.

Insurance Denials Card

The Insurance Denials Card Track insurance claim denials and appeal status.

Preview

Installation

ash npx shadcn@latest add https://vectormotion.vercel.app/registry/insurance-denials-card.json

Insurance Denials Card
'use client'import React from 'react';import { XCircle, AlertCircle, FileX } from 'lucide-react';import { motion } from 'motion/react';import { clsx, type ClassValue } from "clsx";import { twMerge } from "tailwind-merge";function cn(...inputs: ClassValue[]) {   return twMerge(clsx(inputs));}interface DenialReason {   name: string;   value: number;   color: string;}interface InsuranceDenialsCardProps {   className?: string;   title?: string;   subtitle?: string;   denialRate?: string;   actionableAmount?: string;   reasons?: DenialReason[];}const DEFAULT_REASONS: DenialReason[] = [   { name: "Prior Auth", value: 42, color: "bg-red-500" },   { name: "Coding Error", value: 18, color: "bg-orange-500" },   { name: "Timely Filing", value: 12, color: "bg-zinc-400" },];const DEFAULT_TITLE = "Denials";const DEFAULT_SUBTITLE = "Claim Rejections";const DEFAULT_DENIAL_RATE = "8%";const DEFAULT_ACTIONABLE_AMOUNT = "$45K";export const InsuranceDenialsCard: React.FC<InsuranceDenialsCardProps> = ({   className = "",   title = DEFAULT_TITLE,   subtitle = DEFAULT_SUBTITLE,   denialRate = DEFAULT_DENIAL_RATE,   actionableAmount = DEFAULT_ACTIONABLE_AMOUNT,   reasons = DEFAULT_REASONS,}) => {   const isInteractive = true;   const index = 37;   return (      <motion.div         layoutId={isInteractive ? `card-${index}-${title}` : undefined}         transition={{ duration: 0.4, ease: "easeOut" }}         className={cn(            "relative overflow-hidden rounded-2xl border border-border bg-card text-card-foreground shadow-sm transition-all flex flex-col h-full",            isInteractive ? "hover:border-red-300 dark:hover:border-red-700 hover:shadow-md" : "",            className         )}      >         <div className="p-5 flex flex-col h-full relative z-10">            <div className="mb-4 flex items-start justify-between">               <div>                  <h3 className="font-bold text-lg text-foreground">                     {title}                  </h3>                  <div className="flex items-center gap-1.5 mt-1">                     <span className="relative flex h-2 w-2">                        <span className="relative inline-flex rounded-full h-2 w-2 bg-red-500"></span>                     </span>                     <p className="text-sm text-muted-foreground font-medium">                        {subtitle}                     </p>                  </div>               </div>               <div className="rounded-xl bg-red-50 dark:bg-red-900/20 p-2.5 text-red-600 dark:text-red-400 flex items-center justify-center ring-1 ring-red-100 dark:ring-red-800">                  <XCircle className="h-5 w-5" />               </div>            </div>            <div className="flex-1 space-y-4">               <div className="flex items-center gap-3">                  <div className="h-10 w-10 rounded-lg bg-red-50 dark:bg-red-900/10 flex items-center justify-center border border-red-100 dark:border-red-900/30">                     <span className="text-lg font-bold text-red-600 dark:text-red-400">{denialRate}</span>                  </div>                  <div>                     <p className="text-xs font-bold text-zinc-800 dark:text-zinc-200">Denial Rate</p>                     <p className="text-[10px] text-muted-foreground">Overall Claims</p>                  </div>               </div>               <div className="space-y-3">                  {reasons.map((reason, i) => (                     <div key={i} className="space-y-1">                        <div className="flex justify-between text-xs">                           <span className="font-medium text-zinc-600 dark:text-muted-foreground">{reason.name}</span>                           <span className="font-bold text-foreground">{reason.value}%</span>                        </div>                        <div className="h-1.5 w-full bg-zinc-100 dark:bg-zinc-800 rounded-full overflow-hidden">                           <motion.div                              initial={{ width: 0 }}                              animate={{ width: `${reason.value}%` }}                              transition={{ duration: 1, delay: i * 0.1 }}                              className={cn("h-full rounded-full", reason.color)}                           />                        </div>                     </div>                  ))}               </div>               <div className="flex items-center gap-2 p-2 rounded-lg bg-muted">                  <FileX className="h-3.5 w-3.5 text-muted-foreground" />                  <span className="text-xs text-muted-foreground"><span className="font-bold text-foreground">{actionableAmount}</span> actionable denied</span>               </div>            </div>         </div>      </motion.div>   );};

Usage

This component is a demo card displaying medical metrics with animated visualizations and dark mode support.

Prop

Type