{
  "$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 = (p.selected ?? false) -%}\n{%- set c_5 -%}\n  {%- set c_4 -%}\n    {%- if og_t(((p.icon ?? null) is not null)) %}\n      {%- set c_1 -%}\n        {{ og_slot((p.icon ?? null))|raw }}\n      {%- endset -%}\n      {{ include('compose/Inline.html.twig', {'class': 'flex w-7 shrink-0 items-center pr-2', 'attrs': og_attrs(['data-slot', 'dropdown-item-icon']), 'children': c_1}, with_context = false) }}\n    {%- endif %}\n    {%- set c_2 -%}\n      {{ og_slot((children ?? null))|raw }}\n    {%- endset -%}\n    {{ include('compose/Inline.html.twig', {'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}, with_context = false) }}\n    {%- if og_t(((p.right ?? null) is not null)) %}\n      {%- set c_3 -%}\n        {{ og_slot((p.right ?? null))|raw }}\n      {%- endset -%}\n      {{ include('compose/Inline.html.twig', {'class': 'flex shrink-0 items-center pr-1', 'attrs': og_attrs(['data-slot', 'dropdown-item-right']), 'children': c_3}, with_context = false) }}\n    {%- endif %}\n  {%- endset -%}\n  {{ include('compose/Inline.html.twig', {'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}, with_context = false) }}\n{%- endset -%}\n{{ include('compose/ButtonPlain.html.twig', {'type': 'button', 'class': og_s(og_cnv(['group flex h-9 w-full items-center px-2 text-left text-foreground', (p.className ?? '')])), 'attrs': og_attrs(['role', 'menuitem', 'tabindex', -1, 'data-slot', 'dropdown-item', 'data-state', (og_t(v_selected) ? 'selected' : 'default')]), 'children': c_5}, with_context = false) }}\n",
      "path": "blocks/dropdown-item.html.twig",
      "target": "blocks/dropdown-item.html.twig"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "twig",
      "component"
    ]
  },
  "name": "dropdown-item",
  "registryDependencies": [
    "button-plain",
    "inline",
    "utils"
  ],
  "runtime": "twig",
  "title": "Dropdown Item",
  "type": "registry:component"
}
