Docs
usePreventZoom

Prevent zooming on touch devices with usePreventZoom, providing options for scroll, keyboard, and pinch prevention.

Installation

pnpm dlx shadcn@latest add https://usekit.kiron.dev/k/use-prevent-zoom

Usage

"use client"
 
import { usePreventZoom } from "@/hooks/use-prevent-zoom"
 
const App = () => {
  usePreventZoom() // Prevents keyboard, scroll and pinch zooming
 
  return <div>Your App</div>
}