{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "A composite badge on a dark band: an optional small mark beside a label.",
  "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/hero-badge.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\t\"github.com/ui8kit/codegen/generated/templ/ui/text\"\n\tuiutils \"github.com/ui8kit/codegen/generated/templ/orgutils\"\n)\n\n// HeroBadgeProps are the props of HeroBadge; the values are the JSON shapes of the TypeScript props.\ntype HeroBadgeProps struct {\n\tLabel any `json:\"label\"`\n\tMark any `json:\"mark\"`\n}\n\n// A composite badge on a dark band: an optional small mark beside a label.\ntempl HeroBadge(p HeroBadgeProps) {\n\t{{ vLabel := p.Label }}\n\t{{ vMark := p.Mark }}\n\t@compose.Group(compose.GroupProps{Gap: \"2\", Align: \"center\", BoxProps: box.BoxProps{Class: uiutils.S(uiutils.Cnv(\"h-8 justify-center rounded-full px-2 inset-ring inset-ring-background/30\", uiutils.Get(presetDefaults, \"hero\", \"badge\"))), Attrs: uiutils.Attrs(\"data-slot\", \"section-badge\")}}) {\n\t\tif uiutils.T(vMark) {\n\t\t\t@compose.Badge(compose.BadgeProps{Variant: \"secondary\", Size: \"sm\", TextProps: text.TextProps{}}) {\n\t\t\t\t{ uiutils.Text(vMark) }\n\t\t\t}\n\t\t}\n\t\t@compose.Text(compose.TextProps{Size: \"xs\", Weight: \"bold\", TextProps: text.TextProps{Class: \"leading-5 text-background\"}}) {\n\t\t\t{ uiutils.Text(vLabel) }\n\t\t}\n\t}\n}\n",
      "path": "blocks/hero-badge.templ",
      "target": "blocks/hero-badge.templ"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "templ",
      "component"
    ]
  },
  "name": "hero-badge",
  "registryDependencies": [
    "badge",
    "group",
    "kit-box",
    "kit-text",
    "presets",
    "text",
    "utils"
  ],
  "runtime": "templ",
  "title": "Hero Badge",
  "type": "registry:component"
}
