Vector Motion
E-Commerce

Customer Acquisition Card - Growth Metrics

Monitor customer acquisition cost (CAC) and new customer growth. Track marketing ROI and customer acquisition channel performance.

Customer Acquisition Card

The Customer Acquisition Card Monitor customer acquisition cost and metrics.

Preview

Installation

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

Customer Acquisition Card
'use client';import React from "react";import { Users, DollarSign } 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 CustomerAcquisitionCardProps {  className?: string;  title?: string;  cost?: string;  change?: number;}const DEFAULT_TITLE = "Customer Acquisition Cost";const DEFAULT_COST = "$22.50";const DEFAULT_CHANGE = -12;export const CustomerAcquisitionCard: React.FC<  CustomerAcquisitionCardProps> = ({  className = "",  title = DEFAULT_TITLE,  cost = DEFAULT_COST,  change = DEFAULT_CHANGE,}) => {    const isInteractive = true;    const index = 31;    return (      <motion.div        layoutId={isInteractive ? `card-${index}-${title}` : undefined}        transition={{ duration: 0.4, ease: "easeOut" }}        className={cn(          "relative overflow-hidden rounded-xl border border-border bg-card text-card-foreground p-6 shadow-sm transition-all flex flex-col group",          isInteractive            ? "cursor-pointer hover:border-zinc-300 dark:hover:border-zinc-700"            : "",          className,        )}      >        <div className="mb-4 flex items-start justify-between relative z-10">          <div>            <h3 className="font-semibold text-lg tracking-tight text-foreground">              {title}            </h3>            <p className="text-sm text-muted-foreground mt-1">              Average per new customer            </p>          </div>          <div className="rounded-full bg-zinc-100 dark:bg-zinc-800 p-2 text-foreground flex items-center justify-center">            <Users className="h-5 w-5 text-indigo-500" />          </div>        </div>        <div className="relative z-10 flex-1 flex flex-col justify-end">          <div className="text-3xl font-bold text-foreground mb-1">{cost}</div>          <p className="text-sm text-muted-foreground">            <span className="text-emerald-500">{change}%</span> improvement this            quarter          </p>        </div>      </motion.div>    );  };

Usage

This component is a data-rich dashboard card displaying e-commerce metrics with animated visualizations and dark mode support. Perfect for dashboards, landing pages, and analytics interfaces.

Prop

Type