{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "A faded picture behind the content of its header (a transparent top bar over a hero image); on false: nothing. It sits inside the header Block, which is `relative isolate overflow-hidden` and transparent when on, so the header 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/organisms/over-media.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// OverMediaProps are the props of OverMedia; the values are the JSON shapes of the TypeScript props.\ntype OverMediaProps struct {\n\tOn any `json:\"on\"`\n\tAlt any `json:\"alt\"`\n}\n\n// A faded picture behind the content of its header (a transparent top bar over a hero image); on false: nothing. It sits inside the header Block, which is `relative isolate overflow-hidden` and transparent when on, so the header stays the root of the block (rule 01).\ntempl OverMedia(p OverMediaProps) {\n\t{{ vOn := uiutils.Def(p.On, false) }}\n\t{{ vAlt := p.Alt }}\n\tif uiutils.T(vOn) {\n\t\t@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: \"pointer-events-none absolute inset-0 -z-10\", Attrs: uiutils.Attrs(\"data-slot\", \"over\")}}) {\n\t\t\t@MediaFrame(MediaFrameProps{Alt: vAlt, Ratio: \"21/9\", Class: uiutils.Cnv(\"size-full rounded-none opacity-40\")})\n\t\t}\n\t}\n}\n",
      "path": "blocks/over-media.templ",
      "target": "blocks/over-media.templ"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "templ",
      "component"
    ]
  },
  "name": "over-media",
  "registryDependencies": [
    "box",
    "kit-box",
    "media-frame",
    "utils"
  ],
  "runtime": "templ",
  "title": "Over Media",
  "type": "registry:component"
}
