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 Revenue Analytics to your project and fits it to your theme.
Code
How Kairo Revenue Analytics 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>
);
}















