Code And Chill

Kairo — SaaS Revenue Analytics Dashboard (MRR)

Component 1

About

Clickable subscription revenue analytics: MRR, churn and movements, reports, opportunities and live Settings with themes and accents. Full Kairo app: codeandchill.store/templates/kairo?utm_source=21st

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Kairo — SaaS Revenue Analytics Dashboard (MRR) to your project and fits it to your theme.

Code

How Kairo — SaaS Revenue Analytics Dashboard (MRR) is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { useEffect, useState } from "react";
import KairoDashboard from "@/components/ui/kairo-revenue-analytics";

const settings = {
  accent: "#2563eb",
  company: "Northwind Labs",
  userName: "Amara Reyes",
};

/** Kairo opens light, then follows the page's `dark` class only when it changes. */
function usePageDark() {
  const [dark, setDark] = useState(false);
  useEffect(() => {
    const html = document.documentElement;
    let last = html.classList.contains("dark");
    const sync = () => {
      const now = html.classList.contains("dark");
      if (now === last) return;
      last = now;
      setDark(now);
    };
    const mo = new MutationObserver(sync);
    mo.observe(html, { attributes: true, attributeFilter: ["class"] });
    return () => mo.disconnect();
  }, []);
  return dark;
}

export default function Demo(props: Partial<typeof settings> = {}) {
  const s = { ...settings, ...props };
  const dark = usePageDark();
  return (
    <div className="min-h-screen w-full bg-background">
      <KairoDashboard accent={s.accent} company={s.company} userName={s.userName} theme={dark ? "dark" : "light"} />
    </div>
  );
}

Dependencies

More by Code And Chill

View all
  • Fernly — Project Management Dashboard with Kanban

    Fernly — Project Management Dashboard with Kanban

    697
  • Corbel — Sales Analytics Dashboard

    Corbel — Sales Analytics Dashboard

    358
  • Hovira — Glassmorphism Smart Home Dashboard

    Hovira — Glassmorphism Smart Home Dashboard

    86
  • Vitra — Glass Pricing Section

    Vitra — Glass Pricing Section

    72
  • Halden — CRM Dashboard with Sales Pipeline

    Halden — CRM Dashboard with Sales Pipeline

    58
  • Money River — Sankey Money Flow Chart

    Money River — Sankey Money Flow Chart

    40
  • Kestrel — Marketing Analytics Dashboard

    Kestrel — Marketing Analytics Dashboard

    37
  • Meniscus — Liquid Bottom Navigation Bar

    Meniscus — Liquid Bottom Navigation Bar

    31