{
  "$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{var $v_selected = ($p['selected'] ?? false)}\n{capture $c_5}\n  {capture $c_4}\n    {if og_t(((($p['icon'] ?? null) !== null)))}\n      {capture $c_1}\n        {=og_slot(($p['icon'] ?? null))|noescape}\n      {/capture}\n      {=og_include('compose/Inline.latte', ['class' => 'flex w-7 shrink-0 items-center pr-2', 'attrs' => og_attrs(['data-slot', 'dropdown-item-icon']), 'children' => (string) $c_1])|noescape}\n    {/if}\n    {capture $c_2}\n      {=og_slot(($children ?? null))|noescape}\n    {/capture}\n    {=og_include('compose/Inline.latte', ['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' => (string) $c_2])|noescape}\n    {if og_t(((($p['right'] ?? null) !== null)))}\n      {capture $c_3}\n        {=og_slot(($p['right'] ?? null))|noescape}\n      {/capture}\n      {=og_include('compose/Inline.latte', ['class' => 'flex shrink-0 items-center pr-1', 'attrs' => og_attrs(['data-slot', 'dropdown-item-right']), 'children' => (string) $c_3])|noescape}\n    {/if}\n  {/capture}\n  {=og_include('compose/Inline.latte', ['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' => (string) $c_4])|noescape}\n{/capture}\n{=og_include('compose/ButtonPlain.latte', ['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' => (string) $c_5])|noescape}\n",
      "path": "blocks/dropdown-item.latte",
      "target": "blocks/dropdown-item.latte"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "latte",
      "component"
    ]
  },
  "name": "dropdown-item",
  "registryDependencies": [
    "button-plain",
    "inline",
    "utils"
  ],
  "runtime": "latte",
  "title": "Dropdown Item",
  "type": "registry:component"
}
