{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "scroll-area-horizontal-demo", "type": "registry:example", "author": "shadcn (https://ui.shadcn.com)", "registryDependencies": [ "scroll-area" ], "files": [ { "path": "examples/scroll-area-horizontal-demo.tsx", "content": "import * as React from \"react\"\nimport Image from \"next/image\"\n\nimport { ScrollArea, ScrollBar } from \"@/registry/default/ui/scroll-area\"\n\nexport interface Artwork {\n artist: string\n art: string\n}\n\nexport const works: Artwork[] = [\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]\n\nexport default function ScrollAreaHorizontalDemo() {\n return (\n \n
\n {works.map((artwork) => (\n
\n
\n \n
\n
\n Photo by{\" \"}\n \n {artwork.artist}\n \n
\n
\n ))}\n
\n \n
\n )\n}\n", "type": "registry:example", "target": "" } ] }