{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "use-is-touch-device-demo",
  "title": "UseIsTouchDeviceDemo",
  "description": "use-is-touch-device's hook in action.",
  "registryDependencies": [
    "card",
    "badge",
    "https://guarahooks.com/r/use-is-touch-device.json"
  ],
  "files": [
    {
      "path": "registry/example/use-is-touch-device-demo.tsx",
      "content": "'use client';\n\nimport { Badge } from '@/components/ui/badge';\nimport {\n  Card,\n  CardContent,\n  CardDescription,\n  CardHeader,\n  CardTitle,\n} from '@/components/ui/card';\n\nimport { useIsTouchDevice } from '@/hooks/guarahooks/use-is-touch-device';\n\nexport default function UseIsTouchDeviceDemo() {\n  const { isTouchable } = useIsTouchDevice();\n\n  return (\n    <Card className=\"w-full max-w-md relative\">\n      <CardHeader>\n        <CardTitle>useIsTouchDevice</CardTitle>\n        <CardDescription>\n          This hook detects if the user's device has touch screen functionality.\n        </CardDescription>\n      </CardHeader>\n      <CardContent className=\"space-y-4\">\n        <div className=\"flex flex-col space-y-2\">\n          <p className=\"text-sm font-medium\">Touch Support Status:</p>\n          <Badge\n            variant={isTouchable ? 'default' : 'secondary'}\n            className=\"w-fit\"\n          >\n            {isTouchable ? 'Touch Device' : 'Non-Touch Device'}\n          </Badge>\n        </div>\n        <div className=\"text-sm text-muted-foreground\">\n          {isTouchable\n            ? 'Your device supports touch input'\n            : 'Your device does not support touch input'}\n        </div>\n      </CardContent>\n    </Card>\n  );\n}\n",
      "type": "registry:example",
      "target": "components/example/use-is-touch-device-demo.tsx"
    }
  ],
  "type": "registry:example"
}