A hero card with a badge, a very large number, a headline, and a paged set of insights over a soft gradient.
Authorization rate increased by 4% compared to last week.
This improvement reduced failed transactions by 950 and is projected to recover $12,400.
import { InsightCard } from "@/registry/dashboardcn/blocks/insight-card"
export default function InsightCardDemo() {Installation#
pnpm dlx shadcn@latest add https://dashboardcn.com/r/insight-card.jsonAlso installs card, tooltip from shadcn/ui if missing.
Usage#
import { InsightCard } from "@/components/insight-card"
<InsightCard
badge="Insights"
variant="aurora"
interval={6000}
items={[
{
value: 0.75,
format: "percent",
headline: "Authorization rate increased by 4% compared to last week.",
description: "This improvement reduced failed transactions by 950 and is projected to recover $12,400.",
},
{
value: 38,
headline: "38 high-value customers have not ordered in 60 days.",
},
]}
/>Examples#
Variants#
variant picks the gradient: aurora, sunset, ocean, or graphite. size="md" shrinks the number for narrower columns.
Signups from social doubled this week.
Most came from a single launch thread on Thursday.
Cost per lead is projected to fall 9% next month.
Driven by improving quality scores on the top three campaigns.
Checkout latency spiked at 02:14 UTC.
Traced to a cold cache after the nightly deploy. Now recovered.
import { Flame, Sparkles, Waves } from "lucide-react"
import { InsightCard } from "@/registry/dashboardcn/blocks/insight-card"Plain#
variant="plain" drops the gradient and uses the card colors, so it sits next to other blocks.
Authorization rate increased by 4% compared to last week.
This improvement reduced failed transactions by 950 and is projected to recover $12,400.
import { EllipsisVertical } from "lucide-react"
import { Button } from "@/components/ui/button"