{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "A menu item: an optional icon, the label and an optional trailing mark (a check for selected items). tabindex -1: the menu moves focus with the arrow keys.",
  "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/patterns/dropdown-item.json\n    A menu item: an optional icon, the label and an optional trailing mark (a check for selected items). tabindex -1: the menu moves focus with the arrow keys.\n    Props (p): selected, className, icon (slot), right (slot); children: markup. -#}\n{%- set v_selected = og_def(p['selected'], false) -%}\n{%- set c_5 -%}\n  {%- set c_4 -%}\n    {%- if og_t((og_def(p['icon'], none) is not none)) %}\n      {%- set c_1 -%}\n        {{ og_slot(og_def(p['icon'], none))|safe }}\n      {%- endset -%}\n      {{ og_include('compose/inline.html.j2', {'p': {'Class': 'flex w-7 shrink-0 items-center pr-2', 'Attrs': og_attrs(['data-slot', 'dropdown-item-icon'])}, 'children': c_1}) }}\n    {%- endif %}\n    {%- set c_2 -%}\n      {{ og_slot(og_def(children, none))|safe }}\n    {%- endset -%}\n    {{ og_include('compose/inline.html.j2', {'p': {'Class': og_s(og_cnv(['text-xs', 'min-w-0 flex-1 truncate px-1 font-bold'])), 'Attrs': og_attrs(['data-slot', 'dropdown-item-label'])}, 'children': c_2}) }}\n    {%- if og_t((og_def(p['right'], none) is not none)) %}\n      {%- set c_3 -%}\n        {{ og_slot(og_def(p['right'], none))|safe }}\n      {%- endset -%}\n      {{ og_include('compose/inline.html.j2', {'p': {'Class': 'flex shrink-0 items-center pr-1', 'Attrs': og_attrs(['data-slot', 'dropdown-item-right'])}, 'children': c_3}) }}\n    {%- endif %}\n  {%- endset -%}\n  {{ og_include('compose/inline.html.j2', {'p': {'Class': 'flex h-7 min-w-0 flex-1 items-center rounded p-1 group-hover:bg-muted group-focus-visible:bg-muted group-data-[state=selected]:bg-muted', 'Attrs': og_attrs(['data-slot', 'dropdown-item-content'])}, 'children': c_4}) }}\n{%- endset -%}\n{{ og_include('compose/button-plain.html.j2', {'p': {'Type': 'button', 'Class': og_s(og_cnv(['group flex h-9 w-full items-center px-2 text-left text-foreground', og_def(p['className'], '')])), 'Attrs': og_attrs(['role', 'menuitem', 'tabindex', -1, 'data-slot', 'dropdown-item', 'data-state', ('selected' if og_t(v_selected) else 'default')])}, 'children': c_5}) }}\n",
      "path": "blocks/dropdown-item.html.j2",
      "target": "blocks/dropdown-item.html.j2"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "jinja2",
      "component"
    ]
  },
  "name": "dropdown-item",
  "registryDependencies": [
    "button-plain",
    "inline",
    "utils"
  ],
  "runtime": "jinja2",
  "title": "Dropdown Item",
  "type": "registry:component"
}
