{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Dropdown Item component",
  "devDependencies": [],
  "digest": "0.1.0",
  "files": [
    {
      "content": "<!-- Code generated by packages/kit-compose/src/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT. -->\n<!--\n  A menu item: an optional icon, the label and an optional trailing mark (a check for selected items). tabindex\n  -1: the menu moves focus with the arrow keys.\n-->\n<script lang=\"ts\">\nexport type DropdownItemProps = {\n  selected?: boolean;\n  class?: string;\n};\n</script>\n\n<script setup lang=\"ts\">\nimport ButtonPlain from \"../compose/ButtonPlain.vue\";\nimport Inline from \"../compose/Inline.vue\";\nimport { cn } from \"../utils\";\n\nconst { selected = false, class: className } = defineProps<DropdownItemProps>();\nconst emit = defineEmits<{ click: [] }>();\ndefineSlots<{ default?(): unknown, icon?(): unknown, right?(): unknown }>();\n</script>\n\n<template>\n  <ButtonPlain\n    type=\"button\"\n    role=\"menuitem\"\n    :class=\"cn('group flex h-9 w-full items-center px-2 text-left text-foreground', className)\"\n    :tabindex=\"-1\"\n    data-slot=\"dropdown-item\"\n    :data-state=\"(selected ? 'selected' : 'default')\"\n    @click=\"() => emit('click')\"\n  >\n    <Inline\n      :class=\"'flex h-7 min-w-0 flex-1 items-center rounded p-1 group-hover:bg-muted group-focus-visible:bg-muted ' +\n        'group-data-[state=selected]:bg-muted'\"\n      data-slot=\"dropdown-item-content\"\n    >\n      <Inline v-if=\"$slots.icon\" class=\"flex w-7 shrink-0 items-center pr-2\" data-slot=\"dropdown-item-icon\">\n        <slot name=\"icon\" />\n      </Inline>\n      <Inline :class=\"cn('text-xs', 'min-w-0 flex-1 truncate px-1 font-bold')\" data-slot=\"dropdown-item-label\">\n        <slot />\n      </Inline>\n      <Inline v-if=\"$slots.right\" class=\"flex shrink-0 items-center pr-1\" data-slot=\"dropdown-item-right\">\n        <slot name=\"right\" />\n      </Inline>\n    </Inline>\n  </ButtonPlain>\n</template>\n",
      "path": "components/dropdown-item.vue",
      "target": "components/dropdown-item.vue"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "vue",
      "component"
    ]
  },
  "name": "dropdown-item",
  "registryDependencies": [
    "button-plain",
    "inline",
    "utils"
  ],
  "runtime": "vue",
  "title": "Dropdown Item",
  "type": "registry:component"
}
