{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "A centered row of topic pills: links where a topic has an address, else buttons. tone inverse: on a dark band with an icon per topic; default: outlined.",
  "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/topic-chips.json\n    A centered row of topic pills: links where a topic has an address, else buttons. tone inverse: on a dark band with an icon per topic; default: outlined.\n    Props (p): topics, tone. -#}\n{%- set v_topics = og_def(p['topics'], none) -%}\n{%- set v_tone = og_def(p['tone'], 'default') -%}\n{%- set c_3 -%}\n  {%- for v_topic in og_l(v_topics) %}\n    {%- if og_t(og_eq(v_tone, 'inverse')) %}\n      {%- set c_1 -%}\n        {%- if og_t(og_get(v_topic, ['icon'])) %}\n          {{ og_include('icons/lucide-icon.html.j2', {'p': {'Name': og_s(og_get(v_topic, ['icon'])), 'Size': 16}}) }}\n        {%- endif %}\n        {{ og_text(og_get(v_topic, ['name'])) }}\n      {%- endset -%}\n      {{ og_include('compose/button.html.j2', {'p': {'Href': og_url(og_s(og_get(v_topic, ['href']))), 'Variant': 'ghost', 'Size': 'sm', 'Class': 'gap-2 text-background inset-ring-background/30 hover:bg-background/10'}, 'children': c_1}) }}\n    {%- else %}\n      {%- set c_2 -%}\n        {{ og_text(og_get(v_topic, ['name'])) }}\n      {%- endset -%}\n      {{ og_include('compose/button.html.j2', {'p': {'Href': og_url(og_s(og_get(v_topic, ['href']))), 'Variant': 'outline', 'Size': 'sm'}, 'children': c_2}) }}\n    {%- endif %}\n  {%- endfor %}\n{%- endset -%}\n{{ og_include('compose/group.html.j2', {'p': {'Gap': '2', 'Align': 'center', 'Justify': 'center', 'Class': 'flex-wrap', 'Attrs': og_attrs(['data-slot', 'hero-topics'])}, 'children': c_3}) }}\n",
      "path": "blocks/topic-chips.html.j2",
      "target": "blocks/topic-chips.html.j2"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "jinja2",
      "component"
    ]
  },
  "name": "topic-chips",
  "registryDependencies": [
    "button",
    "group",
    "lucide-icon",
    "utils"
  ],
  "runtime": "jinja2",
  "title": "Topic Chips",
  "type": "registry:component"
}
