Command Palette

Search for a command to run...

Docs
Use Device Detection

A hook for detecting the device type

Installation

pnpm dlx shadcn@latest add "https://ui.ednesdayw.com/r/use-device-detection.json"

Usage

import { useDeviceDetection } from "@/hooks/use-device-detection";
 
const device = useDeviceDetection();

Example

Current Device: desktop