WRAPCODERS

TraceRocket Reports Dashboard

Dashboards

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>
  );
}

Dependencies

More by WRAPCODERS

View all
  • Product Hover Showcase

    Product Hover Showcase

    75
  • Real Estate 3D Hero

    Real Estate 3D Hero

    45
  • Metric Trend Chart

    Metric Trend Chart

    34
  • AI Motion Visual Orb

    AI Motion Visual Orb

    16
  • Interactive 3D Hero Header

    Interactive 3D Hero Header

    16
  • Portfolio Projects Showcase

    Portfolio Projects Showcase

    14
  • AI SaaS Workflow Hero

    AI SaaS Workflow Hero

    11
  • Executive Pricing Plan

    Executive Pricing Plan

    10

More in Dashboards

View all
  • serf dashboard

    serf dashboard

    39
  • Dashboard with Collapsible Sidebar

    Dashboard with Collapsible Sidebar

    2.6K
  • Glass Dashboard

    Glass Dashboard

    690
  • Adjustable Glass Dashboard

    Adjustable Glass Dashboard

    1.1K
  • Dashboard Shell

    Dashboard Shell

    193
  • Stat Card

    Stat Card

    70
  • Chart Component

    Chart Component

    29
  • App Dashboard Layout

    App Dashboard Layout

    541

Explore more

Part of Components — browse the full library on 21st.dev.