{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "blueprint-dashboard-demo",
  "type": "registry:block",
  "title": "Blueprint: Generated Dashboard",
  "description": "Wireframe Build Animation example, Generated Dashboard: An analytics assistant answers with a dashboard card. KPIs count up through `data-blueprint-count`, chart bars grow from even placeholders into their real heights through `--blueprint-progress`, and table rows fill in cell by cell. Drag the scrubber to take it apart and put it back. A take on the wireframe (skeleton) and scroll animation (on scroll). Fits features, hero and portfolio sections.",
  "author": "KeyframeUI <https://keyframeui.com>",
  "categories": [
    "features",
    "hero",
    "portfolio",
    "wireframe",
    "scroll-animation",
    "layout",
    "scroll",
    "motion"
  ],
  "docs": "Live preview, examples and props: https://keyframeui.com/components/blueprint#blueprint-dashboard-demo",
  "registryDependencies": [
    "https://keyframeui.com/r/blueprint.json"
  ],
  "files": [
    {
      "path": "components/blueprint-dashboard-demo.tsx",
      "type": "registry:component",
      "content": "import { Blueprint } from \"@/components/ui/blueprint\";\n\nconst regions = [\n  { name: \"North America\", short: \"NA\", revenue: 1.64, change: \"+14.2%\" },\n  { name: \"Europe\", short: \"EU\", revenue: 1.38, change: \"+9.8%\" },\n  { name: \"Asia Pacific\", short: \"APAC\", revenue: 1.02, change: \"+21.5%\" },\n  { name: \"Latin America\", short: \"LATAM\", revenue: 0.49, change: \"+6.1%\" },\n  { name: \"Middle East & Africa\", short: \"MEA\", revenue: 0.29, change: \"+3.4%\" },\n];\n\nconst kpis = [\n  { label: \"Revenue\", value: \"$4.82M\" },\n  { label: \"vs. Q2\", value: \"+12.4%\" },\n  { label: \"Orders\", value: \"18,240\" },\n];\n\nconst top = Math.max(...regions.map((r) => r.revenue));\n// In the wireframe every bar stands at the same placeholder height, then grows or settles\n// into its real one as it builds. --blueprint-progress runs 0–1 on each block while it builds.\nconst SKELETON_BAR = 0.42;\nconst barStyle = (revenue: number) => {\n  const height = revenue / top;\n  const from = SKELETON_BAR / height;\n  return {\n    height: `${height * 100}%`,\n    scale: `1 calc(${from} + ${1 - from} * var(--blueprint-progress, 1))`,\n  };\n};\n\nexport function BlueprintDashboardDemo() {\n  return (\n    <div className=\"w-full max-w-2xl rounded-2xl border border-zinc-200 bg-zinc-50 p-4 text-zinc-900 sm:p-5 dark:border-zinc-800 dark:bg-zinc-950 dark:text-zinc-100\">\n      <div className=\"flex justify-end\">\n        <p className=\"rounded-2xl rounded-br-md bg-zinc-900 px-3.5 py-2 text-sm text-white dark:bg-white dark:text-zinc-900\">\n          Revenue by region, last quarter\n        </p>\n      </div>\n      <p className=\"mt-4 mb-3 flex items-center gap-2 text-xs text-zinc-500\">\n        <svg viewBox=\"0 0 16 16\" fill=\"currentColor\" className=\"size-3.5 text-indigo-500\" aria-hidden>\n          <path d=\"M8 1.5 9.6 6.4 14.5 8l-4.9 1.6L8 14.5 6.4 9.6 1.5 8l4.9-1.6L8 1.5Z\" />\n        </svg>\n        Built from 4 queries on orders and accounts\n      </p>\n\n      <Blueprint play=\"auto\" scrubber duration={{ build: 6, hold: 3 }}>\n        <div\n          data-blueprint=\"box\"\n          data-blueprint-label=\"Card\"\n          className=\"rounded-xl border border-zinc-200 bg-white p-4 shadow-sm sm:p-5 dark:border-zinc-800 dark:bg-zinc-900\"\n        >\n          <div className=\"flex items-start justify-between gap-4\">\n            <div>\n              <h3 data-blueprint className=\"text-base font-semibold tracking-tight\">\n                Revenue by region\n              </h3>\n              <p data-blueprint className=\"mt-0.5 text-xs text-zinc-500\">\n                Q3 2026 · Jul 1 – Sep 30\n              </p>\n            </div>\n            <button\n              data-blueprint\n              type=\"button\"\n              className=\"rounded-md border border-zinc-200 px-2.5 py-1 text-xs font-medium dark:border-zinc-700\"\n            >\n              Export\n            </button>\n          </div>\n\n          <div className=\"mt-4 grid grid-cols-3 gap-2 sm:gap-3\">\n            {kpis.map((kpi) => (\n              <div key={kpi.label} className=\"rounded-lg bg-zinc-50 px-3 py-2.5 dark:bg-zinc-800/60\">\n                <p data-blueprint className=\"text-xs text-zinc-500\">\n                  {kpi.label}\n                </p>\n                <p\n                  data-blueprint\n                  data-blueprint-count\n                  className=\"mt-0.5 text-lg font-semibold tracking-tight tabular-nums sm:text-xl\"\n                >\n                  {kpi.value}\n                </p>\n              </div>\n            ))}\n          </div>\n\n          <div className=\"mt-5 flex h-32 items-end gap-3 border-b border-zinc-200 px-1 sm:gap-5 dark:border-zinc-800\">\n            {regions.map((region, i) => (\n              <div\n                key={region.short}\n                data-blueprint=\"box\"\n                className={\n                  i === 0\n                    ? \"flex-1 origin-bottom rounded-t-md bg-indigo-500 dark:bg-indigo-400\"\n                    : \"flex-1 origin-bottom rounded-t-md bg-indigo-500/45 dark:bg-indigo-400/45\"\n                }\n                style={barStyle(region.revenue)}\n              />\n            ))}\n          </div>\n          <div data-blueprint=\"text\" className=\"mt-1.5 flex gap-3 px-1 text-[11px] text-zinc-500 sm:gap-5\">\n            {regions.map((region) => (\n              <span key={region.short} className=\"flex-1 text-center\">\n                {region.short}\n              </span>\n            ))}\n          </div>\n\n          <div className=\"mt-5 text-sm\">\n            <div\n              data-blueprint=\"text\"\n              className=\"grid grid-cols-[1fr_5rem_4rem] gap-x-4 pb-2 text-[11px] font-medium tracking-wide text-zinc-500 uppercase\"\n            >\n              <span>Region</span>\n              <span className=\"text-right\">Revenue</span>\n              <span className=\"text-right\">Change</span>\n            </div>\n            {regions.map((region) => (\n              <div\n                key={region.short}\n                data-blueprint=\"text\"\n                data-blueprint-count\n                className=\"grid grid-cols-[1fr_5rem_4rem] gap-x-4 border-t border-zinc-100 py-2 tabular-nums dark:border-zinc-800\"\n              >\n                <span className=\"truncate\">{region.name}</span>\n                <span className=\"text-right\">${region.revenue.toFixed(2)}M</span>\n                <span className=\"text-right text-emerald-600 dark:text-emerald-400\">{region.change}</span>\n              </div>\n            ))}\n          </div>\n        </div>\n      </Blueprint>\n    </div>\n  );\n}\n"
    }
  ]
}