About
Asymmetric split KPI bento combining an editorial summary and reviewer stack with a timeframe switcher and three tabular metric cards.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Performance Stats Bento to your project and fits it to your theme.
Code
How Performance Stats Bento is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
"use client";
import { useEffect } from "react";
import { PerformanceStatsBento, type PerformanceTimeframe } from "@/components/ui/performance-stats-bento";
const PROFILE_REFERRAL_URL = "https://21st.dev/@wrapcoders?ref=mdruhulhasan";
const settings = {
badgeLabel: "Performance stats",
heading: "Proven by active revenue teams",
ctaLabel: "Explore the full demo",
ratingLabel: "rated 4.8/5",
defaultTimeframe: "90d" as PerformanceTimeframe,
showTimeframeSwitcher: true,
showFooterCredit: true,
};
export default function PerformanceStatsBentoDemo(
props: Partial<typeof settings>
) {
const s = { ...settings, ...props };
useEffect(() => {
if (typeof window === "undefined") return;
const themeParam = new URLSearchParams(window.location.search).get("theme");
if (themeParam === "dark") {
document.documentElement.classList.add("dark");
} else if (themeParam === "light") {
document.documentElement.classList.remove("dark");
}
}, []);
return (
<div className="min-h-screen w-full bg-background text-foreground flex flex-col items-center justify-center">
<PerformanceStatsBento
badgeLabel={s.badgeLabel}
heading={s.heading}
ctaLabel={s.ctaLabel}
ratingLabel={s.ratingLabel}
defaultTimeframe={s.defaultTimeframe}
showTimeframeSwitcher={s.showTimeframeSwitcher}
/>
{s.showFooterCredit && (
<footer className="pb-10 text-center">
<a
href={PROFILE_REFERRAL_URL}
target="_blank"
rel="noopener noreferrer"
className="text-xs text-muted-foreground hover:text-foreground transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background rounded-sm"
>
More by @wrapcoders
</a>
</footer>
)}
</div>
);
}








