{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "scroll-area-example", "title": "Scroll Area", "registryDependencies": [ "scroll-area", "separator", "example" ], "files": [ { "path": "registry/base-lyra/examples/scroll-area-example.tsx", "content": "import * as React from \"react\"\nimport Image from \"next/image\"\n\nimport {\n Example,\n ExampleWrapper,\n} from \"@/registry/base-lyra/components/example\"\nimport { ScrollArea, ScrollBar } from \"@/registry/base-lyra/ui/scroll-area\"\nimport { Separator } from \"@/registry/base-lyra/ui/separator\"\n\nconst tags = Array.from({ length: 50 }).map(\n (_, i, a) => `v1.2.0-beta.${a.length - i}`\n)\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 Malyav\",\n art: \"https://images.unsplash.com/photo-1494337480532-3725c85fd2ab?auto=format&fit=crop&w=300&q=80\",\n },\n] as const\n\nexport default function ScrollAreaExample() {\n return (\n \n \n \n \n )\n}\n\nfunction ScrollAreaVertical() {\n return (\n \n \n \n Tags\n {tags.map((tag) => (\n \n {tag}\n \n \n ))}\n \n \n \n )\n}\n\nfunction ScrollAreaHorizontal() {\n return (\n \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}\n", "type": "registry:example" } ], "type": "registry:example" }