{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "One cell value of ComparisonTable: yes shows a check, no a dash (both with the hidden word for screen readers), any other value is shown as text.",
  "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/compare-mark.json\n\npackage blocks\n\nimport (\n\t\"github.com/ui8kit/codegen/generated/templ/compose\"\n\t\"github.com/ui8kit/codegen/generated/templ/icons\"\n\t\"github.com/ui8kit/codegen/generated/templ/ui/text\"\n\tuiutils \"github.com/ui8kit/codegen/generated/templ/orgutils\"\n)\n\n// CompareMarkProps are the props of CompareMark; the values are the JSON shapes of the TypeScript props.\ntype CompareMarkProps struct {\n\tValue any `json:\"value\"`\n\tYes any `json:\"yes\"`\n\tNo any `json:\"no\"`\n}\n\n// One cell value of ComparisonTable: yes shows a check, no a dash (both with the hidden word for screen readers), any other value is shown as text.\ntempl CompareMark(p CompareMarkProps) {\n\t{{ vValue := p.Value }}\n\t{{ vYes := p.Yes }}\n\t{{ vNo := p.No }}\n\tif uiutils.Eq(vValue, \"yes\") {\n\t\t@compose.Inline(compose.InlineProps{TextProps: text.TextProps{Class: \"inline-flex items-center gap-2\", Attrs: uiutils.Attrs(\"data-mark\", \"yes\", \"data-slot\", \"compare-mark\")}}) {\n\t\t\t@icons.LucideIcon(icons.LucideIconProps{Name: \"check\", Size: 16, Class: \"text-foreground\"})\n\t\t\t@compose.Inline(compose.InlineProps{TextProps: text.TextProps{Class: \"sr-only\"}}) {\n\t\t\t\t{ uiutils.Text(vYes) }\n\t\t\t}\n\t\t}\n\t}\n\tif uiutils.Eq(vValue, \"no\") {\n\t\t@compose.Inline(compose.InlineProps{TextProps: text.TextProps{Class: \"inline-flex items-center gap-2 text-muted-foreground\", Attrs: uiutils.Attrs(\"data-mark\", \"no\", \"data-slot\", \"compare-mark\")}}) {\n\t\t\t@icons.LucideIcon(icons.LucideIconProps{Name: \"minus\", Size: 16})\n\t\t\t@compose.Inline(compose.InlineProps{TextProps: text.TextProps{Class: \"sr-only\"}}) {\n\t\t\t\t{ uiutils.Text(vNo) }\n\t\t\t}\n\t\t}\n\t}\n\tif uiutils.T(uiutils.And(!uiutils.Eq(vValue, \"yes\"), !uiutils.Eq(vValue, \"no\"))) {\n\t\t@compose.Inline(compose.InlineProps{TextProps: text.TextProps{Attrs: uiutils.Attrs(\"data-slot\", \"compare-mark\")}}) {\n\t\t\t{ uiutils.Text(vValue) }\n\t\t}\n\t}\n}\n",
      "path": "blocks/compare-mark.templ",
      "target": "blocks/compare-mark.templ"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "templ",
      "component"
    ]
  },
  "name": "compare-mark",
  "registryDependencies": [
    "inline",
    "kit-text",
    "lucide-icon",
    "utils"
  ],
  "runtime": "templ",
  "title": "Compare Mark",
  "type": "registry:component"
}
