{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "header-14",
  "type": "registry:block",
  "description": "Ecommerce header with a utility bar, category nav, search, account, wishlist and cart badge, and a slide-in mobile drawer.",
  "dependencies": [
    "lucide-react"
  ],
  "registryDependencies": [],
  "files": [
    {
      "path": "registry/designali/blocks/header/header-14.tsx",
      "content": "\"use client\"\n\nimport { useState } from \"react\"\nimport {\n  ChevronDown,\n  Heart,\n  Mail,\n  Menu,\n  Search,\n  ShoppingBag,\n  Download,\n  User,\n  X,\n} from \"@designali/icons\"\n\nconst categories = [\"New in\", \"Templates\", \"Blocks\", \"Icons\", \"Logos\", \"Sale\"]\n\nexport default function Header14() {\n  const [open, setOpen] = useState(false)\n  const [cart] = useState(3)\n\n  return (\n    <section className=\"w-full bg-background\">\n      <div className=\"bg-muted text-xs text-muted-foreground\">\n        <div className=\"mx-auto flex h-9 max-w-7xl items-center justify-between gap-4 px-6\">\n          <p className=\"flex items-center gap-2 truncate\">\n            <Download className=\"size-3.5 shrink-0\" />\n            Instant download on every Designali template and block.\n          </p>\n          <div className=\"hidden items-center gap-5 md:flex\">\n            <a href=\"#\" className=\"flex items-center gap-1.5 hover:text-foreground\">\n              <Mail className=\"size-3.5\" />\n              hello@designali.com\n            </a>\n            <a href=\"#\" className=\"hover:text-foreground\">\n              Contact\n            </a>\n            <button type=\"button\" className=\"flex items-center gap-1 hover:text-foreground\">\n              USD\n              <ChevronDown className=\"size-3\" />\n            </button>\n          </div>\n        </div>\n      </div>\n\n      <header className=\"border-b\">\n        <div className=\"mx-auto flex h-16 max-w-7xl items-center gap-4 px-6\">\n          <button\n            type=\"button\"\n            aria-label=\"Open menu\"\n            onClick={() => setOpen(true)}\n            className=\"-ms-2 flex size-9 items-center justify-center lg:hidden\"\n          >\n            <Menu className=\"size-5\" />\n          </button>\n          <a href=\"#\" className=\"font-sans text-2xl tracking-tight\">\n            designali\n          </a>\n          <nav className=\"ms-8 hidden gap-6 text-sm lg:flex\">\n            {categories.map((category) => (\n              <a\n                key={category}\n                href=\"#\"\n                className={\n                  category === \"Sale\"\n                    ? \"text-destructive hover:underline dark:text-destructive\"\n                    : \"hover:underline underline-offset-8\"\n                }\n              >\n                {category}\n              </a>\n            ))}\n          </nav>\n          <div className=\"ms-auto flex items-center gap-1\">\n            <label className=\"hidden h-9 w-56 items-center gap-2 border px-3 text-sm md:flex\">\n              <Search className=\"size-4 text-muted-foreground\" />\n              <input\n                placeholder=\"Search templates\"\n                className=\"w-full min-w-0 bg-transparent outline-none placeholder:text-muted-foreground\"\n              />\n            </label>\n            <button type=\"button\" aria-label=\"Search\" className=\"flex size-9 items-center justify-center md:hidden\">\n              <Search className=\"size-5\" />\n            </button>\n            <a href=\"#\" aria-label=\"Account\" className=\"hidden size-9 items-center justify-center sm:flex\">\n              <User className=\"size-5\" />\n            </a>\n            <a href=\"#\" aria-label=\"Wishlist\" className=\"hidden size-9 items-center justify-center sm:flex\">\n              <Heart className=\"size-5\" />\n            </a>\n            <a href=\"#\" aria-label={`Cart, ${cart} items`} className=\"relative flex size-9 items-center justify-center\">\n              <ShoppingBag className=\"size-5\" />\n              <span className=\"absolute end-0 top-0 flex size-4 items-center justify-center rounded-full bg-foreground text-[10px] text-background\">\n                {cart}\n              </span>\n            </a>\n          </div>\n        </div>\n      </header>\n\n      {open && (\n        <div className=\"fixed inset-0 z-50 lg:hidden\" role=\"dialog\" aria-modal=\"true\" aria-label=\"Menu\">\n          <button\n            type=\"button\"\n            aria-label=\"Close menu\"\n            onClick={() => setOpen(false)}\n            className=\"absolute inset-0 bg-foreground/40\"\n          />\n          <div className=\"relative flex h-full w-[85%] max-w-sm flex-col bg-background\">\n            <div className=\"flex h-16 items-center justify-between border-b px-6\">\n              <span className=\"font-sans text-xl\">designali</span>\n              <button type=\"button\" aria-label=\"Close menu\" onClick={() => setOpen(false)}>\n                <X className=\"size-5\" />\n              </button>\n            </div>\n            <nav className=\"flex flex-col px-6 py-2\">\n              {categories.map((category) => (\n                <a\n                  key={category}\n                  href=\"#\"\n                  className={\n                    category === \"Sale\"\n                      ? \"border-b py-4 text-destructive dark:text-destructive\"\n                      : \"border-b py-4\"\n                  }\n                >\n                  {category}\n                </a>\n              ))}\n            </nav>\n            <div className=\"mt-auto space-y-3 border-t px-6 py-6 text-sm text-muted-foreground\">\n              <a href=\"#\" className=\"flex items-center gap-3\">\n                <User className=\"size-4\" /> Sign in or create account\n              </a>\n              <a href=\"#\" className=\"flex items-center gap-3\">\n                <Heart className=\"size-4\" /> Wishlist\n              </a>\n              <a href=\"#\" className=\"flex items-center gap-3\">\n                <Mail className=\"size-4\" /> hello@designali.com\n              </a>\n            </div>\n          </div>\n        </div>\n      )}\n    </section>\n  )\n}\n",
      "type": "registry:component"
    }
  ],
  "meta": {
    "iframeHeight": "300px"
  },
  "categories": [
    "header"
  ]
}