About
Aerospace and manufacturing reports dashboard featuring a production trajectory spline chart, status cards, and supplier performance metrics.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds TraceRocket Reports Dashboard to your project and fits it to your theme.
Code
How TraceRocket Reports Dashboard is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import { useState, useEffect } from "react";
import TraceRocketReportsDashboard from "@/components/ui/tracerocket-reports-dashboard";
import { Sun, Moon, Tablet, Layout, ArrowUpRight } from "lucide-react";
export default function TraceRocketReportsDashboardDemo() {
const [frameMode, setFrameMode] = useState<"tablet" | "none">("tablet");
const [isDark, setIsDark] = useState<boolean>(() => {
if (typeof window !== "undefined") {
const params = new URLSearchParams(window.location.search);
const themeParam = params.get("theme");
if (themeParam === "dark") return true;
if (themeParam === "light") return false;
return true; // Default dark
}
return true;
});
useEffect(() => {
if (typeof document !== "undefined") {
if (isDark) {
document.documentElement.classList.add("dark");
} else {
document.documentElement.classList.remove("dark");
}
}
}, [isDark]);
const toggleTheme = () => setIsDark((prev) => !prev);
const toggleFrame = () =>
setFrameMode((prev) => (prev === "tablet" ? "none" : "tablet"));
return (
<div className="relative min-h-screen w-full bg-[#08090c] text-neutral-100 transition-colors duration-200 flex flex-col justify-between items-center p-3 sm:p-6 lg:p-8">
{/* Top Controls Bar */}
<div className="w-full max-w-6xl flex flex-wrap items-center justify-between gap-3 pb-4">
{/* Left Badge */}
<div className="flex items-center gap-2">
<span className="h-2 w-2 rounded-full bg-emerald-400 animate-pulse" />
<span className="text-xs font-medium text-neutral-300">
TraceRocket Operations Dashboard
</span>
</div>
{/* Right Action Switchers */}
<div className="flex items-center gap-2">
{/* Frame Toggle */}
<button
type="button"
onClick={toggleFrame}
className="inline-flex h-8 items-center gap-1.5 rounded-lg border border-neutral-800 bg-neutral-900/90 px-3 text-xs font-medium text-neutral-300 hover:text-white hover:bg-neutral-800 transition-colors"
>
{frameMode === "tablet" ? (
<>
<Layout className="h-3.5 w-3.5" />
<span>Full width</span>
</>
) : (
<>
<Tablet className="h-3.5 w-3.5" />
<span>Tablet frame</span>
</>
)}
</button>
{/* Theme Switcher */}
<button
type="button"
onClick={toggleTheme}
className="inline-flex h-8 items-center gap-1.5 rounded-lg border border-neutral-800 bg-neutral-900/90 px-3 text-xs font-medium text-neutral-300 hover:text-white hover:bg-neutral-800 transition-colors"
>
{isDark ? (
<>
<Sun className="h-3.5 w-3.5 text-amber-400" />
<span>Light</span>
</>
) : (
<>
<Moon className="h-3.5 w-3.5 text-neutral-400" />
<span>Dark</span>
</>
)}
</button>
{/* Referral Button */}
<a
href="https://21st.dev/?ref=mdruhulhasan"
target="_blank"
rel="noopener noreferrer"
className="inline-flex h-8 items-center gap-1 rounded-lg border border-emerald-500/30 bg-emerald-500/10 px-3 text-xs font-medium text-emerald-400 hover:bg-emerald-500/20 transition-colors shadow-2xs"
>
<span>Explore on 21st.dev</span>
<ArrowUpRight className="h-3.5 w-3.5" />
</a>
</div>
</div>
{/* Main Component Canvas */}
<div className="w-full max-w-6xl flex justify-center py-2">
<TraceRocketReportsDashboard frameMode={frameMode} />
</div>
{/* Footer Referral Attribution */}
<footer className="w-full pt-8 text-center text-xs text-neutral-400">
<a
href="https://21st.dev/?ref=mdruhulhasan"
target="_blank"
rel="noopener noreferrer"
className="hover:text-emerald-400 transition-colors inline-flex items-center gap-1"
>
<span>Find more production components on 21st.dev</span>
<ArrowUpRight className="h-3.5 w-3.5" />
</a>
</footer>
</div>
);
}
















