{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "The tags of a post as small badges in a wrapping row.",
  "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/post-tags.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// PostTagsProps are the props of PostTags; the values are the JSON shapes of the TypeScript props.\ntype PostTagsProps struct {\n\tTags any `json:\"tags\"`\n\tAlign any `json:\"align\"`\n}\n\n// The tags of a post as small badges in a wrapping row.\ntempl PostTags(p PostTagsProps) {\n\t{{ vTags := p.Tags }}\n\t{{ vAlign := uiutils.Def(p.Align, \"start\") }}\n\t@compose.Group(compose.GroupProps{Gap: \"2\", Justify: uiutils.S(vAlign), BoxProps: box.BoxProps{Class: \"flex-wrap\", Attrs: uiutils.Attrs(\"data-slot\", \"post-tags\")}}) {\n\t\tfor _, vTag := range uiutils.L(vTags) {\n\t\t\t@compose.Badge(compose.BadgeProps{Variant: \"secondary\", Size: \"sm\", TextProps: text.TextProps{}}) {\n\t\t\t\t{ uiutils.Text(uiutils.Get(vTag, \"name\")) }\n\t\t\t}\n\t\t}\n\t}\n}\n",
      "path": "blocks/post-tags.templ",
      "target": "blocks/post-tags.templ"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "templ",
      "component"
    ]
  },
  "name": "post-tags",
  "registryDependencies": [
    "badge",
    "group",
    "kit-box",
    "kit-text",
    "utils"
  ],
  "runtime": "templ",
  "title": "Post Tags",
  "type": "registry:component"
}
