{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "stretch-index-demo",
  "type": "registry:block",
  "title": "Stretch Index: Customer Stories",
  "description": "Hover Accordion List example, Customer Stories: A product site's customer stories. Move down the list: a row opens once the pointer settles, so a quick sweep doesn't make the list ripple. Each company's tab warms to its own color and opens into a photo, and the whole row links to the story. A take on the hover list (list hover) and accordion (collapsible). Fits testimonials, team, careers, portfolio and blog sections.",
  "author": "KeyframeUI <https://keyframeui.com>",
  "categories": [
    "testimonials",
    "team",
    "careers",
    "portfolio",
    "blog",
    "hover-list",
    "accordion",
    "image-reveal",
    "list",
    "hover",
    "layout"
  ],
  "docs": "Live preview, examples and props: https://keyframeui.com/components/stretch-index#stretch-index-demo",
  "registryDependencies": [
    "https://keyframeui.com/r/stretch-index.json"
  ],
  "files": [
    {
      "path": "components/stretch-index-demo.tsx",
      "type": "registry:component",
      "content": "import { StretchIndex, StretchIndexItem } from \"@/components/ui/stretch-index\";\n\nconst stories = [\n  {\n    title: \"A bank that now ships every Friday\",\n    company: \"Halcyon Bank\",\n    text: \"Thirty engineers moved from quarterly release trains to weekly ones, without a rollback in the first year.\",\n    result: \"52 releases in 2025\",\n    photo: \"1460925895917-afdab827c52f\",\n    accent: \"#5b8def\",\n  },\n  {\n    title: \"One booking system for forty restaurants\",\n    company: \"Common Table\",\n    text: \"Hosts used to juggle three tools a night. Now every table, waitlist and deposit runs through one screen.\",\n    result: \"38% fewer no-shows\",\n    photo: \"1517248135467-4c7edcad34c4\",\n    accent: \"#e08a4f\",\n  },\n  {\n    title: \"Checkout, rebuilt for the phone first\",\n    company: \"Fern & Pilot\",\n    text: \"Two thirds of orders come from phones. A one-page checkout took paying from three minutes to forty seconds.\",\n    result: \"21% more completed orders\",\n    photo: \"1586953208448-b95a79798f07\",\n    accent: \"#3fae7a\",\n  },\n  {\n    title: \"Eleven designers, one library\",\n    company: \"Northstar\",\n    text: \"Six drifting UI kits became one shared library that engineers pull from directly, so mockups and code finally match.\",\n    result: \"6 kits down to 1\",\n    photo: \"1558655146-d09347e92766\",\n    accent: \"#a77df0\",\n  },\n  {\n    title: \"Code review in half the time\",\n    company: \"Relay\",\n    text: \"A team across nine time zones switched to smaller pull requests and recorded walkthroughs, and stopped waiting a day for review.\",\n    result: \"Reviews 2× faster\",\n    photo: \"1519389950473-47ba0277781c\",\n    accent: \"#e5b93f\",\n  },\n];\n\nconst photo = (id: string) =>\n  `https://images.unsplash.com/photo-${id}?auto=format&fit=crop&w=480&h=360&q=80`;\n\nconst slug = (company: string) => company.toLowerCase().replace(/[^a-z0-9]+/g, \"-\");\n\nexport function StretchIndexDemo() {\n  return (\n    <section className=\"w-full max-w-3xl text-zinc-900 dark:text-zinc-50\">\n      <div className=\"mb-6 flex items-end justify-between gap-4\">\n        <div>\n          <p className=\"font-mono text-xs tracking-widest text-zinc-500 uppercase\">\n            Customer stories\n          </p>\n          <h3 className=\"mt-2 text-2xl font-semibold tracking-tight\">\n            What changed after they switched\n          </h3>\n        </div>\n        <p className=\"hidden font-mono text-xs text-zinc-500 tabular-nums sm:block\">\n          {stories.length} stories\n        </p>\n      </div>\n\n      <StretchIndex defaultIndex={0} className=\"border-t border-current/10\">\n        {stories.map((story) => (\n          <StretchIndexItem\n            key={story.company}\n            title={story.title}\n            meta={story.company}\n            href={`#${slug(story.company)}`}\n            image={photo(story.photo)}\n            accent={story.accent}\n          >\n            <p className=\"max-w-md text-pretty text-zinc-600 dark:text-zinc-400\">{story.text}</p>\n            <div className=\"mt-3 flex flex-wrap items-center gap-x-4 gap-y-1 text-sm\">\n              <span className=\"font-medium tabular-nums\">{story.result}</span>\n              <a\n                href={`#${slug(story.company)}`}\n                className=\"rounded-sm font-medium text-zinc-500 underline-offset-4 outline-none hover:text-current hover:underline focus-visible:ring-2 focus-visible:ring-current\"\n              >\n                Read the story <span aria-hidden>→</span>\n              </a>\n            </div>\n          </StretchIndexItem>\n        ))}\n      </StretchIndex>\n    </section>\n  );\n}\n"
    }
  ]
}