WRAPCODERS

Client Management CRM Hub

Dashboards

About

Polished SaaS client management and CRM dashboard featuring segmented platform filters, interactive client portfolio cards, agreement progress metrics, source distribution breakdown, and AI copilot assistant.

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

Code

How Client Management CRM Hub is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

import { useState, useEffect } from "react";
import ClientManagementHub, {
  defaultClients,
  defaultAgreements,
  defaultSources,
  defaultQuickActions,
  ClientItem,
} from "@/components/ui/client-management-hub";
import { Moon, Sun, ArrowUpRight } from "lucide-react";

export default function ClientManagementHubDemo() {
  const [theme, setTheme] = useState<"light" | "dark">("light");

  useEffect(() => {
    const params = new URLSearchParams(window.location.search);
    const themeParam = params.get("theme");
    if (themeParam === "dark") {
      setTheme("dark");
      document.documentElement.classList.add("dark");
    } else {
      setTheme("light");
      document.documentElement.classList.remove("dark");
    }
  }, []);

  const toggleTheme = () => {
    const nextTheme = theme === "light" ? "dark" : "light";
    setTheme(nextTheme);
    if (nextTheme === "dark") {
      document.documentElement.classList.add("dark");
    } else {
      document.documentElement.classList.remove("dark");
    }
  };

  const handleClientSelected = (client: ClientItem) => {
    console.log("Selected client:", client.name);
  };

  return (
    <div
      className={`relative min-h-screen w-full bg-[#EDEAF7] dark:bg-[#0A0B14] text-slate-800 dark:text-slate-100 flex flex-col justify-between p-3 sm:p-6 lg:p-8 transition-colors duration-300 overflow-hidden ${
        theme === "dark" ? "dark" : ""
      }`}
    >
      {/* Subtle Background Pattern Dots */}
      <div className="absolute inset-0 pointer-events-none opacity-40 dark:opacity-20 bg-[radial-gradient(#818cf8_1px,transparent_1px)] [background-size:24px_24px]" />

      {/* Top Bar with Referral and Theme Toggle */}
      <div className="relative z-10 w-full max-w-7xl mx-auto flex items-center justify-between pb-4">
        {/* Referral Badge */}
        <a
          href="https://21st.dev/?ref=mdruhulhasan"
          target="_blank"
          rel="noopener noreferrer"
          className="inline-flex items-center gap-2 px-3.5 py-1.5 rounded-full text-xs font-semibold bg-white/85 dark:bg-slate-800/85 border border-purple-200/70 dark:border-slate-700/60 text-indigo-700 dark:text-indigo-300 shadow-sm hover:shadow hover:bg-white dark:hover:bg-slate-800 transition-all"
        >
          <span className="w-2 h-2 rounded-full bg-emerald-500 animate-pulse" />
          <span>LoopAI Hub on 21st.dev</span>
          <ArrowUpRight className="w-3.5 h-3.5 opacity-70" />
        </a>

        {/* Theme Toggle Button */}
        <button
          type="button"
          onClick={toggleTheme}
          className="inline-flex items-center gap-1.5 px-3 py-1.5 rounded-full text-xs font-medium bg-white/85 dark:bg-slate-800/85 border border-slate-200/80 dark:border-slate-700/80 text-slate-700 dark:text-slate-200 shadow-sm hover:bg-white dark:hover:bg-slate-800 transition-all cursor-pointer"
          aria-label="Toggle light/dark theme"
        >
          {theme === "light" ? (
            <>
              <Moon className="w-3.5 h-3.5" />
              <span>Dark Mode</span>
            </>
          ) : (
            <>
              <Sun className="w-3.5 h-3.5" />
              <span>Light Mode</span>
            </>
          )}
        </button>
      </div>

      {/* Main Component Canvas */}
      <main className="relative z-10 w-full flex justify-center py-2">
        <ClientManagementHub
          brandName="LoopAI"
          clients={defaultClients}
          agreements={defaultAgreements}
          clientSources={defaultSources}
          quickActions={defaultQuickActions}
          referralUrl="https://21st.dev/?ref=mdruhulhasan"
          onSelectClient={handleClientSelected}
        />
      </main>

      {/* Bottom Footer with Referral Link */}
      <footer className="relative z-10 w-full max-w-7xl mx-auto pt-6 pb-2 flex flex-col sm:flex-row items-center justify-between text-xs text-slate-500 dark:text-slate-400 border-t border-purple-200/50 dark:border-slate-800/60 mt-4">
        <div className="flex items-center gap-2">
          <span>LoopAI Client Management Hub</span>
          <span>•</span>
          <span>Crafted for modern SaaS teams</span>
        </div>
        <div className="mt-2 sm:mt-0 flex items-center gap-3">
          <a
            href="https://21st.dev/?ref=mdruhulhasan"
            target="_blank"
            rel="noopener noreferrer"
            className="hover:text-purple-600 dark:hover:text-purple-400 transition-colors inline-flex items-center gap-1 font-medium"
          >
            <span>Explore 21st.dev components</span>
            <ArrowUpRight className="w-3 h-3" />
          </a>
        </div>
      </footer>
    </div>
  );
}

Dependencies

More by WRAPCODERS

View all
  • Product Hover Showcase

    Product Hover Showcase

    75
  • Real Estate 3D Hero

    Real Estate 3D Hero

    45
  • Metric Trend Chart

    Metric Trend Chart

    34
  • AI Motion Visual Orb

    AI Motion Visual Orb

    16
  • Interactive 3D Hero Header

    Interactive 3D Hero Header

    16
  • Portfolio Projects Showcase

    Portfolio Projects Showcase

    14
  • AI SaaS Workflow Hero

    AI SaaS Workflow Hero

    11
  • Executive Pricing Plan

    Executive Pricing Plan

    10

More in Dashboards

View all
  • serf dashboard

    serf dashboard

    39
  • Dashboard with Collapsible Sidebar

    Dashboard with Collapsible Sidebar

    2.6K
  • Glass Dashboard

    Glass Dashboard

    690
  • Adjustable Glass Dashboard

    Adjustable Glass Dashboard

    1.1K
  • Dashboard Shell

    Dashboard Shell

    193
  • Stat Card

    Stat Card

    70
  • Chart Component

    Chart Component

    29
  • App Dashboard Layout

    App Dashboard Layout

    541

Explore more

Part of Components — browse the full library on 21st.dev.