Skip to content
shadcn.io

shadcn.io is not affiliated with official shadcn/ui

useIsMobile

Reports whether the viewport is below the mobile breakpoint.

Installation

bunx --bun shadcn@latest add https://kit.dev/r/use-is-mobile.json

Usage

import { useIsMobile } from "@/hooks/use-is-mobile";

API Reference

useIsMobile

PropType