{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "navbar-auto-hide",
  "title": "Navbar Auto Hide",
  "author": "Poyraz Avsever",
  "description": "Poyraz Soft Glass Navbar Auto Hide with container-responsive layout and semantic tokens.",
  "dependencies": [],
  "registryDependencies": [
    "@poyraz/poyraz-utils",
    "@poyraz/poyraz-theme"
  ],
  "files": [
    {
      "path": "registry/poyraz/hooks/phase8/use-navbar-auto-hide.ts",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nexport interface UseNavbarAutoHideOptions {\n  enabled?: boolean;\n  threshold?: number;\n}\n\nfunction useNavbarAutoHide({ enabled = true, threshold = 80 }: UseNavbarAutoHideOptions = {}) {\n  const [hidden, setHidden] = React.useState(false);\n  const lastScrollY = React.useRef(0);\n\n  React.useEffect(() => {\n    if (!enabled) {\n      setHidden(false);\n      return;\n    }\n\n    function handleScroll() {\n      const currentY = window.scrollY;\n      setHidden(currentY > lastScrollY.current && currentY > threshold);\n      lastScrollY.current = currentY;\n    }\n\n    window.addEventListener(\"scroll\", handleScroll, { passive: true });\n    return () => window.removeEventListener(\"scroll\", handleScroll);\n  }, [enabled, threshold]);\n\n  return hidden;\n}\n\nexport { useNavbarAutoHide };\n",
      "type": "registry:hook",
      "target": "@ui/hooks/use-navbar-auto-hide.ts"
    }
  ],
  "meta": {
    "category": "phase-8-hook",
    "phase": "beta",
    "responsive": "container",
    "accessibilityReviewed": true
  },
  "type": "registry:hook"
}