{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "use-scroll-position-demo",
  "title": "UseScrollPositionDemo",
  "description": "use-scroll-position's hook in action.",
  "registryDependencies": [
    "card",
    "https://guarahooks.com/r/use-scroll-position.json"
  ],
  "files": [
    {
      "path": "registry/example/use-scroll-position-demo.tsx",
      "content": "'use client';\n\nimport {\n  Card,\n  CardContent,\n  CardDescription,\n  CardFooter,\n  CardHeader,\n  CardTitle,\n} from '@/components/ui/card';\n\nimport { useScrollPosition } from '@/hooks/guarahooks/use-scroll-position';\n\nexport default function UseScrollPositionDemo() {\n  const { x, y } = useScrollPosition();\n\n  return (\n    <Card className=\"relative max-w-md w-full\">\n      <CardHeader>\n        <CardTitle>useScrollPosition</CardTitle>\n        <CardDescription>\n          This component uses the <code>useScrollPosition</code> hook to track\n          the page scroll position.\n        </CardDescription>\n      </CardHeader>\n      <CardContent className=\"space-y-2\">\n        <p>Scroll X: {x}px</p>\n        <p>Scroll Y: {y}px</p>\n      </CardContent>\n      <CardFooter>\n        <p className=\"text-sm text-muted-foreground\">\n          Scroll the page to see the values change.\n        </p>\n      </CardFooter>\n    </Card>\n  );\n}\n",
      "type": "registry:example",
      "target": "components/example/use-scroll-position-demo.tsx"
    }
  ],
  "type": "registry:example"
}