{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "files": [
    {
      "content": "import { ScrollArea } from \"~/registry/ui/scroll-area\";\n\nconst works = [\n  {\n    artist: \"Ornella Binni\",\n    art: \"https://images.unsplash.com/photo-1465869185982-5a1a7522cbcb?auto=format&fit=crop&w=300&q=80\",\n  },\n  {\n    artist: \"Tom Byrom\",\n    art: \"https://images.unsplash.com/photo-1548516173-3cabfa4607e9?auto=format&fit=crop&w=300&q=80\",\n  },\n  {\n    artist: \"Vladimir Malyavko\",\n    art: \"https://images.unsplash.com/photo-1494337480532-3725c85fd2ab?auto=format&fit=crop&w=300&q=80\",\n  },\n] as const satisfies {\n  artist: string;\n  art: string;\n}[];\n\nexport function ScrollAreaHorizontalDemo() {\n  return (\n    <ScrollArea.Root className=\"w-96 whitespace-nowrap rounded-md border\">\n      <ScrollArea.Viewport>\n        <div className=\"flex w-max space-x-4 p-4\">\n          {works.map((artwork) => (\n            <figure className=\"shrink-0\" key={artwork.artist}>\n              <div className=\"overflow-hidden rounded-md\">\n                <img\n                  alt={`Art by ${artwork.artist}`}\n                  className=\"aspect-3/4 h-fit w-fit object-cover\"\n                  height={400}\n                  src={artwork.art}\n                  width={300}\n                />\n              </div>\n              <figcaption className=\"pt-2 text-muted-fg text-xs\">\n                Photo by{\" \"}\n                <span className=\"font-semibold text-fg\">{artwork.artist}</span>\n              </figcaption>\n            </figure>\n          ))}\n        </div>\n      </ScrollArea.Viewport>\n      <ScrollArea.Scrollbar orientation=\"horizontal\">\n        <ScrollArea.Thumb />\n      </ScrollArea.Scrollbar>\n    </ScrollArea.Root>\n  );\n}\n",
      "path": "src/registry/examples/scroll-area/scroll-area-horizontal-demo.tsx",
      "type": "registry:example"
    }
  ],
  "name": "scroll-area-horizontal-demo",
  "registryDependencies": [
    "@kanpeki/scroll-area"
  ],
  "type": "registry:example"
}