noahgdev

Insight Card

Dashboards

About

A hero card with a badge, a very large number, a headline, and a paged set of insights over a soft gradient. Use it to surface generated or curated findings at the top of a dashboard.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Insight Card to your project and fits it to your theme.

Code

How Insight Card is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { Flame, Sparkles, Waves } from "lucide-react"

import { InsightCard } from "@/components/ui/dashboardcn-insight-card"

export default function InsightCardVariantsDemo() {
  return (
    <div className="grid w-full gap-4 md:grid-cols-3">
      <InsightCard
        variant="sunset"
        badge="Trending"
        icon={<Flame />}
        size="md"
        items={[
          {
            value: 12400,
            format: "compact",
            headline: "Signups from social doubled this week.",
            description: "Most came from a single launch thread on Thursday.",
          },
        ]}
      />
      <InsightCard
        variant="ocean"
        badge="Forecast"
        icon={<Waves />}
        size="md"
        items={[
          {
            value: 1.28,
            format: "currency",
            headline: "Cost per lead is projected to fall 9% next month.",
            description: "Driven by improving quality scores on the top three campaigns.",
          },
        ]}
      />
      <InsightCard
        variant="graphite"
        badge="Anomaly"
        icon={<Sparkles />}
        size="md"
        items={[
          {
            value: "3.2s",
            headline: "Checkout latency spiked at 02:14 UTC.",
            description: "Traced to a cold cache after the nightly deploy. Now recovered.",
          },
        ]}
      />
    </div>
  )
}

Dependencies

More by noahgdev

View all
  • Donut Chart

    Donut Chart

    5
  • Funnel Chart

    Funnel Chart

    3
  • Heatmap Chart

    Heatmap Chart

    3
  • Sankey Chart

    Sankey Chart

    1
  • Segmented Meter

    Segmented Meter

    1
  • Revenue Ring Card

    Revenue Ring Card

  • Payment Summary Card

    Payment Summary Card

  • Commerce KPI Row

    Commerce KPI Row

More in Dashboards

View all
  • Fernly — Project Management Dashboard with Kanban

    Fernly — Project Management Dashboard with Kanban

    751
  • Analytics Dashboard

    Analytics Dashboard

    81
  • Creator Dashboard

    Creator Dashboard

    216
  • Insights Dashboard

    Insights Dashboard

    44
  • Corbel — Sales Analytics Dashboard

    Corbel — Sales Analytics Dashboard

    446
  • serf dashboard

    serf dashboard

    144
  • Dashboard with Collapsible Sidebar

    Dashboard with Collapsible Sidebar

    2.7K
  • Halden — CRM Dashboard with Sales Pipeline

    Halden — CRM Dashboard with Sales Pipeline

    65