{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Title: Text + recipe title.",
  "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 \"github.com/ui8kit/codegen/generated/templ/ui/text\"\n\n// TitleProps: Title: Text + recipe title.\ntype TitleProps struct {\n\tSize string\n\tWeight string\n\t// As — heading level 1..6 (h1..h6), else h2\n\tAs string\n\ttext.TextProps\n}\n\nfunc titleInner(p TitleProps) text.TextProps {\n\tin := p.TextProps\n\tin.Class = Join(Rc(\"title\", map[string]string{\"size\": p.Size, \"weight\": p.Weight}), p.TextProps.Class)\n\tin.Tag = Heading(p.As, \"h2\")\n\treturn in\n}\n\n// Title renders Text with the composition classes.\ntempl Title(p TitleProps) {\n\t@text.Text(titleInner(p)) {\n\t\t{ children... }\n\t}\n}\n",
      "path": "compose/title.templ",
      "target": "compose/title.templ"
    }
  ],
  "meta": {
    "category": "primitives",
    "kind": "primitive",
    "tags": [
      "templ",
      "primitive"
    ]
  },
  "name": "title",
  "registryDependencies": [
    "kit-text",
    "recipes",
    "utils"
  ],
  "runtime": "templ",
  "title": "Title",
  "type": "registry:ui"
}
