{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "use-orientation-demo",
  "title": "UseOrientationDemo",
  "description": "use-orientation's hook in action.",
  "registryDependencies": [
    "card",
    "https://guarahooks.com/r/use-orientation.json"
  ],
  "files": [
    {
      "path": "registry/example/use-orientation-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 { useOrientation } from '@/hooks/guarahooks/use-orientation';\n\nexport default function UseOrientationDemo() {\n  const orientation = useOrientation();\n\n  return (\n    <Card className=\"relative max-w-sm w-full\">\n      <CardHeader>\n        <CardTitle>useOrientation</CardTitle>\n        <CardDescription>\n          This component uses the <code>useOrientation</code> hook to get the\n          current orientation of the device.\n        </CardDescription>\n      </CardHeader>\n      <CardContent>\n        <p>Current orientation: {orientation}</p>\n        {orientation === 'portrait' ? (\n          <p className=\"text-green-600\">You are in portrait mode 📱</p>\n        ) : (\n          <p className=\"text-purple-600\">You are in landscape mode 🖥️</p>\n        )}\n      </CardContent>\n      <CardFooter>\n        <p className=\"text-sm text-muted-foreground\">\n          Try rotating your device or resizing the window.\n        </p>\n      </CardFooter>\n    </Card>\n  );\n}\n",
      "type": "registry:example",
      "target": "components/example/use-orientation-demo.tsx"
    }
  ],
  "type": "registry:example"
}