import { useLockedBody } from "https://deno.land/x/netzo@0.5.70/deps/usehooks-ts.ts";
Custom hook for locking and unlocking the body scroll to prevent scrolling.
Examples
const [isLocked, setLocked] = useLockedBody(true);
// Use isLocked to conditionally apply styles or prevent scrolling.
// Use setLocked to dynamically control the body scroll lock state.
const [isLocked, setLocked] = useLockedBody(true); // Use isLocked to conditionally apply styles or prevent scrolling. // Use setLocked to dynamically control the body scroll lock state.