{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "A faint full-size picture behind the content of its section (image), or nothing (none). It sits inside the Block of the block, which `behind` makes `relative isolate overflow-hidden`, so the section stays the root of the block (rule 01).",
  "devDependencies": [],
  "digest": "0.1.0",
  "files": [
    {
      "content": "// Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.\n// Source: packages/compose-gen/specs/patterns/backdrop.json\n\npackage blocks\n\nimport (\n\t\"github.com/ui8kit/codegen/generated/templ/ui/box\"\n\t\"github.com/ui8kit/codegen/generated/templ/compose\"\n\tuiutils \"github.com/ui8kit/codegen/generated/templ/orgutils\"\n)\n\n// BackdropProps are the props of Backdrop; the values are the JSON shapes of the TypeScript props.\ntype BackdropProps struct {\n\tKind any `json:\"kind\"`\n\tAlt any `json:\"alt\"`\n\tImage any `json:\"image\"`\n}\n\n// A faint full-size picture behind the content of its section (image), or nothing (none). It sits inside the Block of the block, which `behind` makes `relative isolate overflow-hidden`, so the section stays the root of the block (rule 01).\ntempl Backdrop(p BackdropProps) {\n\t{{ vKind := uiutils.Def(p.Kind, \"none\") }}\n\t{{ vAlt := uiutils.Def(p.Alt, \"\") }}\n\t{{ vImage := p.Image }}\n\tif uiutils.Eq(vKind, \"image\") {\n\t\t@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: \"pointer-events-none absolute inset-0 -z-10\", Attrs: uiutils.Attrs(\"data-slot\", \"backdrop\")}}) {\n\t\t\t@MediaFrame(MediaFrameProps{Alt: vAlt, Src: vImage, Ratio: \"21/9\", Class: uiutils.Cnv(\"size-full rounded-none opacity-30\")})\n\t\t}\n\t}\n}\n",
      "path": "blocks/backdrop.templ",
      "target": "blocks/backdrop.templ"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "templ",
      "component"
    ]
  },
  "name": "backdrop",
  "registryDependencies": [
    "box",
    "kit-box",
    "media-frame",
    "utils"
  ],
  "runtime": "templ",
  "title": "Backdrop",
  "type": "registry:component"
}
