{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "gallery-04",
  "type": "registry:block",
  "description": "A filterable archive gallery with category tabs.",
  "dependencies": [],
  "registryDependencies": [],
  "files": [
    {
      "path": "registry/designali/blocks/gallery/gallery-04.tsx",
      "content": "\"use client\"\n\nimport { useState } from \"react\"\n\nimport { cn } from \"@workspace/ui/lib/utils\"\n\nconst filters = [\"All\", \"Branding\", \"Product\", \"Web\"] as const\n\nconst items = [\n  { title: \"Dalim Agency\", tag: \"Branding\", image: \"/images/templates/dalim-agency-old.jpg\" },\n  { title: \"Dalim UI\", tag: \"Product\", image: \"/images/templates/dalim-ui-old.jpg\" },\n  { title: \"Portfolio Simple\", tag: \"Web\", image: \"/images/templates/portfolio-simple.jpg\" },\n  { title: \"Dalim Graphic\", tag: \"Branding\", image: \"/images/templates/dalim-graphic-old.jpg\" },\n  { title: \"Dalim Tools\", tag: \"Product\", image: \"/images/templates/dalim-tools-old.jpg\" },\n  { title: \"Resort template\", tag: \"Web\", image: \"/images/templates/resort.jpg\" },\n  { title: \"Dalim Fonts\", tag: \"Branding\", image: \"/images/templates/dalim-fonts-old.jpg\" },\n  { title: \"AI template\", tag: \"Product\", image: \"/images/templates/ai.jpg\" },\n]\n\nexport default function Gallery04() {\n  const [active, setActive] = useState<(typeof filters)[number]>(\"All\")\n  const visible = items.filter(\n    (item) => active === \"All\" || item.tag === active\n  )\n\n  return (\n    <section className=\"w-full bg-background py-20\">\n      <div className=\"mx-auto max-w-6xl px-6\">\n        <div className=\"flex flex-col gap-6 border-b border-border pb-6 md:flex-row md:items-end md:justify-between\">\n          <h2 className=\"text-3xl font-semibold tracking-tight\">Designali archive</h2>\n          <div className=\"flex flex-wrap gap-1\">\n            {filters.map((filter) => (\n              <button\n                key={filter}\n                onClick={() => setActive(filter)}\n                className={cn(\n                  \"border px-3 py-1.5 text-xs transition-colors\",\n                  active === filter\n                    ? \"border-foreground bg-foreground text-background\"\n                    : \"border-border text-muted-foreground hover:text-foreground\"\n                )}\n              >\n                {filter}\n              </button>\n            ))}\n          </div>\n        </div>\n        <div className=\"mt-8 grid grid-cols-2 gap-4 md:grid-cols-4\">\n          {visible.map((item) => (\n            <figure key={item.title}>\n              <div\n                className=\"aspect-[4/5] border border-border\"\n                style={{\n                  background: `url(\"${item.image}\") center / cover, var(--muted)`,\n                }}\n              />\n              <figcaption className=\"mt-2 flex justify-between text-xs\">\n                <span className=\"font-medium\">{item.title}</span>\n                <span className=\"text-muted-foreground\">{item.tag}</span>\n              </figcaption>\n            </figure>\n          ))}\n        </div>\n      </div>\n    </section>\n  )\n}\n",
      "type": "registry:component"
    }
  ],
  "meta": {
    "iframeHeight": "900px"
  },
  "categories": [
    "gallery"
  ]
}