useDeviceDetection
Classify the device as mobile, tablet or desktop from viewport media queries, with pointer and hover capabilities.
ReactDeviceResponsiveMedia Query
desktop
Fine pointerCan hoverOS: unknown
Resize the window to see the device class update.
Install Dependencies
1npx shadcn@latest add https://ui.devsloka.in/r/use-device-detection.json