{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "One choice as a radio group drawn as chips: a fieldset with role radiogroup named by its legend, one radio per option (the first checked), the name and an optional price or note. Static markup.",
  "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/option-chips.json\n    One choice as a radio group drawn as chips: a fieldset with role radiogroup named by its legend, one radio per option (the first checked), the name and an optional price or note. Static markup.\n    Props (p): name, legend, options, extra, layout. -#}\n{%- set v_name = (p.name ?? null) -%}\n{%- set v_legend = (p.legend ?? null) -%}\n{%- set v_options = (p.options ?? null) -%}\n{%- set v_extra = (p.extra ?? 'none') -%}\n{%- set v_layout = (p.layout ?? 'wrap') -%}\n{%- set c_8 -%}\n  {%- set c_1 -%}\n    {{ og_text(v_legend) }}\n  {%- endset -%}\n  {{ include('compose/Legend.html.twig', {'size': 'sm', 'class': 'mb-2', 'attrs': og_attrs(['id', og_tpl('{0}-legend', [v_name])]), 'children': c_1}, with_context = false) }}\n  {%- set c_7 -%}\n    {%- for v_o in og_l(v_options) %}\n      {%- set v_i = loop.index0 -%}\n      {%- set c_6 -%}\n        {%- set c_3 -%}\n          {{ include('compose/Radio.html.twig', {'name': og_s(v_name), 'value': og_s(og_get(v_o, ['id'])), 'checked': og_t(og_eq(v_i, 0))}, with_context = false) }}\n          {%- set c_2 -%}\n            {{ og_text(og_get(v_o, ['name'])) }}\n          {%- endset -%}\n          {{ include('compose/Inline.html.twig', {'children': c_2}, with_context = false) }}\n        {%- endset -%}\n        {{ include('compose/Inline.html.twig', {'class': 'flex items-center gap-2', 'children': c_3}, with_context = false) }}\n        {%- if og_t(og_eq(v_extra, 'price')) %}\n          {%- set c_4 -%}\n            {{ og_text(og_money(og_get(v_o, ['price']), og_get(v_o, ['currency']))) }}\n          {%- endset -%}\n          {{ include('compose/Inline.html.twig', {'class': 'text-muted-foreground', 'children': c_4}, with_context = false) }}\n        {%- endif %}\n        {%- if og_t(og_eq(v_extra, 'note')) %}\n          {%- set c_5 -%}\n            {{ og_text(og_get(v_o, ['note'])) }}\n          {%- endset -%}\n          {{ include('compose/Inline.html.twig', {'class': 'text-muted-foreground', 'children': c_5}, with_context = false) }}\n        {%- endif %}\n      {%- endset -%}\n      {{ include('compose/Label.html.twig', {'class': og_s(og_cnv(['flex items-center gap-2 rounded px-4 py-2 text-sm inset-ring inset-ring-border has-checked:bg-muted has-checked:inset-ring-foreground', (og_t(og_eq(v_layout, 'column')) ? 'justify-between' : '')])), 'attrs': og_attrs(['data-slot', 'option']), 'children': c_6}, with_context = false) }}\n    {%- endfor %}\n  {%- endset -%}\n  {{ include('compose/Box.html.twig', {'class': og_s((og_t(og_eq(v_layout, 'column')) ? 'flex flex-col gap-2' : 'flex flex-wrap gap-2')), 'children': c_7}, with_context = false) }}\n{%- endset -%}\n{{ include('compose/Fieldset.html.twig', {'class': 'flex flex-col gap-2', 'attrs': og_attrs(['role', 'radiogroup', 'aria-labelledby', og_tpl('{0}-legend', [v_name]), 'data-slot', 'option-group']), 'children': c_8}, with_context = false) }}\n",
      "path": "blocks/option-chips.html.twig",
      "target": "blocks/option-chips.html.twig"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "twig",
      "component"
    ]
  },
  "name": "option-chips",
  "registryDependencies": [
    "box",
    "fieldset",
    "inline",
    "label",
    "legend",
    "radio",
    "utils"
  ],
  "runtime": "twig",
  "title": "Option Chips",
  "type": "registry:component"
}
