{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "throughline-demo",
  "type": "registry:block",
  "title": "Throughline: Integrations",
  "description": "Integration Logo Paths example, Integrations: A sync tool's integrations, riding three lines through one giant word. One line runs behind the letters, and the glass turns red where a tile crosses one. A take on the flow diagram (flowchart). Fits hero, integrations and features sections.",
  "author": "KeyframeUI <https://keyframeui.com>",
  "categories": [
    "hero",
    "integrations",
    "features",
    "flow-diagram",
    "animated-background",
    "interaction",
    "motion"
  ],
  "docs": "Live preview, examples and props: https://keyframeui.com/components/throughline#throughline-demo",
  "registryDependencies": [
    "https://keyframeui.com/r/throughline.json"
  ],
  "files": [
    {
      "path": "components/throughline-demo.tsx",
      "type": "registry:component",
      "content": "import * as React from \"react\";\n\nimport { Throughline, type ThroughlineItem, type ThroughlineLine } from \"@/components/ui/throughline\";\n\n/** A small app icon: a colored square with a white or ink glyph. */\nfunction AppIcon({ bg, children }: { bg: string; children: React.ReactNode }) {\n  return (\n    <span className=\"flex size-full items-center justify-center rounded-[26%] shadow-[inset_0_1px_0_rgb(255_255_255/0.25)]\" style={{ background: bg }}>\n      <svg viewBox=\"0 0 24 24\" className=\"size-[62%]\" fill=\"none\" strokeLinecap=\"round\" strokeLinejoin=\"round\">\n        {children}\n      </svg>\n    </span>\n  );\n}\n\nconst LINES: ThroughlineLine[] = [\n  { from: [5, 84], to: [95, 10], bend: -0.12 },\n  { from: [8, 8], to: [92, 90], bend: 0.14 },\n  { from: [2, 46], to: [98, 38], bend: -0.24, behind: true },\n];\n\nconst ITEMS: ThroughlineItem[] = [\n  {\n    label: \"Tally · Billing\",\n    line: 0,\n    icon: (\n      <AppIcon bg=\"#c6ff3d\">\n        <path d=\"M12 3.5 13.9 10l6.6 2-6.6 2L12 20.5 10.1 14 3.5 12l6.6-2Z\" fill=\"#0b0b0f\" />\n      </AppIcon>\n    ),\n  },\n  {\n    label: \"Halfmoon · Support inbox\",\n    line: 0,\n    icon: (\n      <AppIcon bg=\"#0b0b0f\">\n        <path d=\"M16.5 4.6a8 8 0 1 0 2.9 10.9A6.5 6.5 0 0 1 16.5 4.6Z\" fill=\"#fff\" />\n      </AppIcon>\n    ),\n  },\n  {\n    label: \"Wavelet · Product analytics\",\n    line: 0,\n    icon: (\n      <AppIcon bg=\"#2f3cff\">\n        <path d=\"M3 12c2.2-5 4.3-5 6.5 0s4.3 5 6.5 0 3.3-4 5-2\" stroke=\"#fff\" strokeWidth=\"2.6\" />\n      </AppIcon>\n    ),\n  },\n  {\n    label: \"Gridline · Spreadsheets\",\n    line: 1,\n    icon: (\n      <AppIcon bg=\"#ffffff\">\n        <rect x=\"4\" y=\"4\" width=\"7\" height=\"7\" rx=\"2\" fill=\"#0b0b0f\" />\n        <rect x=\"13\" y=\"4\" width=\"7\" height=\"7\" rx=\"3.5\" fill=\"#ff3b1f\" />\n        <rect x=\"4\" y=\"13\" width=\"7\" height=\"7\" rx=\"3.5\" fill=\"#ff3b1f\" />\n        <rect x=\"13\" y=\"13\" width=\"7\" height=\"7\" rx=\"2\" fill=\"#0b0b0f\" />\n      </AppIcon>\n    ),\n  },\n  {\n    label: \"Roundup · CRM\",\n    line: 1,\n    icon: (\n      <AppIcon bg=\"linear-gradient(140deg,#ff5fa2,#ff7a1a)\">\n        <circle cx=\"12\" cy=\"12\" r=\"6.5\" stroke=\"#fff\" strokeWidth=\"2.8\" />\n        <circle cx=\"12\" cy=\"12\" r=\"2\" fill=\"#fff\" />\n      </AppIcon>\n    ),\n  },\n  {\n    label: \"Relay Mail · Email\",\n    line: 1,\n    icon: (\n      <AppIcon bg=\"#0b0b0f\">\n        <path d=\"M4 7.5 12 13l8-5.5M5 6h14a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1Z\" stroke=\"#c6ff3d\" strokeWidth=\"2\" />\n      </AppIcon>\n    ),\n  },\n  {\n    label: \"Stint · Time tracking\",\n    line: 2,\n    icon: (\n      <AppIcon bg=\"#7b5cff\">\n        <path d=\"M12 7v5l3 2\" stroke=\"#fff\" strokeWidth=\"2.4\" />\n        <circle cx=\"12\" cy=\"12\" r=\"8\" stroke=\"#fff\" strokeWidth=\"2.4\" />\n      </AppIcon>\n    ),\n  },\n  {\n    label: \"Bolt Forms · Surveys\",\n    line: 2,\n    icon: (\n      <AppIcon bg=\"#ff3b1f\">\n        <path d=\"M13.5 3 6 13.5h5.5L10.5 21 18 10.5h-5.5Z\" fill=\"#fff\" />\n      </AppIcon>\n    ),\n  },\n];\n\nexport function ThroughlineDemo() {\n  return (\n    <section className=\"w-full overflow-hidden rounded-[28px] bg-white py-14 text-center text-zinc-950 sm:py-16 dark:bg-[#08080c] dark:text-white\">\n      <p className=\"text-[13px] font-medium tracking-[-0.01em] text-zinc-500 dark:text-zinc-400\">Okto integrations</p>\n      <Throughline lines={LINES} items={ITEMS} className=\"text-[#ff3b1f] dark:text-[#ff5a3a]\">\n        <h2 className=\"px-4 pb-[max(3.5rem,7.5cqi)] pt-[max(4.5rem,9.5cqi)] text-[clamp(3.25rem,16.5cqi,12.5rem)] font-black leading-[0.8] tracking-[-0.065em] text-[#ff3b1f] dark:text-[#ff5a3a]\">\n          Everything\n        </h2>\n      </Throughline>\n      <p className=\"mx-auto max-w-[23rem] px-6 text-pretty text-[15px] leading-relaxed text-zinc-600 dark:text-zinc-400\">\n        Okto keeps billing, support and analytics in sync both ways. Edit a record in one, and the\n        rest have it within a second.\n      </p>\n      <a\n        href=\"#\"\n        className=\"mt-7 inline-flex h-11 items-center rounded-full bg-[#ff3b1f] px-6 text-sm font-semibold text-white shadow-[0_8px_20px_-8px_rgb(255_59_31/0.7)] transition-transform duration-150 ease-out active:scale-[0.97] focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[#ff3b1f] dark:bg-[#ff5a3a]\"\n      >\n        Browse 40 integrations\n      </a>\n    </section>\n  );\n}\n"
    }
  ]
}