{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "SheetTrigger: Button + Lucide icons (data-ui8kit=\"sheet-trigger\" behaviour).",
  "devDependencies": [],
  "digest": "0.1.0",
  "files": [
    {
      "content": "// Code generated by packages/kit-compose/src/build.ts from src/map.ts + variants/. DO NOT EDIT.\n\npackage compose\n\nimport (\n\t\"github.com/ui8kit/codegen/generated/templ/ui/button\"\n\t\"github.com/ui8kit/codegen/generated/templ/ui/icon\"\n)\n\n// SheetTriggerProps: Button + Lucide icons (data-ui8kit=\"sheet-trigger\").\ntype SheetTriggerProps struct {\n\tVariant   string\n\tSize      string\n\tControls  string\n\tAriaLabel string\n\tbutton.ButtonProps\n}\n\nfunc sheetTriggerInner(p SheetTriggerProps) button.ButtonProps {\n\tin := p.ButtonProps\n\tin.Type = \"button\"\n\tin.Class = Join(Rc(\"sheettrigger\", map[string]string{\"variant\": p.Variant, \"size\": p.Size}), p.ButtonProps.Class)\n\tfixed := map[string]string{\"data-ui8kit\": \"sheet-trigger\", \"aria-expanded\": \"false\", \"aria-haspopup\": \"dialog\", \"aria-label\": Or(p.AriaLabel, \"Open menu\")}\n\tif p.Controls != \"\" {\n\t\tfixed[\"aria-controls\"] = p.Controls\n\t}\n\tin.Attrs = WithAttrs(in.Attrs, fixed)\n\treturn in\n}\n\n// SheetTrigger renders the button with its Lucide icons.\ntempl SheetTrigger(p SheetTriggerProps) {\n\t@button.Button(sheetTriggerInner(p)) {\n\t\t@icon.Icon(icon.IconProps{Class: \"block size-5 in-aria-expanded:hidden\"}) {\n\t\t\t@templ.Raw(lucideMenu)\n\t\t}\n\t\t@icon.Icon(icon.IconProps{Class: \"hidden size-5 in-aria-expanded:block\"}) {\n\t\t\t@templ.Raw(lucideX)\n\t\t}\n\t}\n}\n",
      "path": "compose/sheet-trigger.templ",
      "target": "compose/sheet-trigger.templ"
    }
  ],
  "meta": {
    "category": "primitives",
    "kind": "primitive",
    "tags": [
      "templ",
      "primitive"
    ]
  },
  "name": "sheet-trigger",
  "registryDependencies": [
    "kit-button",
    "kit-icon",
    "recipes",
    "utils"
  ],
  "runtime": "templ",
  "title": "Sheet Trigger",
  "type": "registry:ui"
}
