About
Clickable marketing dashboard: realtime KPIs and trends, paid ads, data sources, lead table and live Settings with accents and density. Full Kestrel app: codeandchill.store/templates/kestrel?utm_source=21st
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Kestrel Marketing Dashboard to your project and fits it to your theme.
Code
How Kestrel Marketing Dashboard is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import { useEffect, useState } from "react";
import KestrelDashboard from "@/components/ui/kestrel-marketing-dashboard";
const settings = {
accent: "#1d62de",
workspace: "Kestrel Studio",
userName: "Maya Lind",
live: true,
};
/** Kestrel 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 was = html.classList.contains("dark");
const mo = new MutationObserver(() => {
const now = html.classList.contains("dark");
if (now !== was) setDark(now);
was = now;
});
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">
<KestrelDashboard accent={s.accent} workspace={s.workspace} userName={s.userName} live={s.live} theme={dark ? "dark" : "light"} />
</div>
);
}















