{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [
    "lucide"
  ],
  "description": "Lucide Icon primitive",
  "devDependencies": [],
  "digest": "0.1.0",
  "files": [
    {
      "content": "<!-- Code generated by packages/kit-compose/src/build.ts from src/map.ts + variants/. DO NOT EDIT. -->\n<!-- LucideIcon: Icon + recipe lucide-icon. -->\n<script setup lang=\"ts\">\nimport { computed, useAttrs } from \"vue\";\nimport Prim from \"../kit/ui/icon/Icon.vue\";\nimport { cn } from \"../kit/utils\";\nimport { rc } from \"./recipes\";\n\ndefineOptions({ name: \"LucideIcon\", inheritAttrs: false });\nconst props = defineProps<{  }>();\nconst attrs = useAttrs();\nconst rest = computed(() => {\n  const { class: _class, ...r } = attrs;\n  return r;\n});\nconst cls = computed(() => cn(rc(\"lucide-icon\", {  }), attrs.class as string | undefined));\nconst tagValue = computed(() => \"\");\n</script>\n\n<template>\n  <Prim :class=\"cls\" v-bind=\"rest\"><slot /></Prim>\n</template>\n",
      "path": "compose/LucideIcon.vue",
      "target": "compose/LucideIcon.vue"
    },
    {
      "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  LucideIcon: a Lucide glyph (ISC license) by kebab-case name (any glyph of the `lucide` package, through ./lucide-icons), inside the Icon primitive\n  (the kit-compose LucideIcon frame: span[data-slot=icon]). Decorative (the frame is aria-hidden) unless a `label` is given.\n-->\n<script lang=\"ts\">\nexport type LucideIconProps = { name: string; size?: number; strokeWidth?: number; label?: string; class?: string };\n</script>\n\n<script setup lang=\"ts\">\nimport { computed } from \"vue\";\nimport Frame from \"../compose/LucideIcon.vue\";\nimport { lucideNodes } from \"./lucide-icons\";\n\ndefineOptions({ inheritAttrs: false });\nconst { name, size = 16, strokeWidth = 2, label, class: className } = defineProps<LucideIconProps>();\nconst nodes = computed(() => lucideNodes(name) ?? lucideNodes(\"circle\") ?? []);\n</script>\n\n<template>\n  <Frame :label=\"label\" :class=\"className\" :data-lucide=\"name\">\n    <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" :width=\"size\" :height=\"size\" fill=\"none\" stroke=\"currentColor\"\n      :stroke-width=\"strokeWidth\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\">\n      <component :is=\"tag\" v-for=\"([tag, attrs], i) in nodes\" :key=\"i\" v-bind=\"attrs\" />\n    </svg>\n  </Frame>\n</template>\n",
      "path": "icons/LucideIcon.vue",
      "target": "icons/LucideIcon.vue"
    },
    {
      "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// Lucide icons (ISC license, https://lucide.dev): every glyph of the `lucide` package (1.57.0, a dependency of this package), by kebab-case name.\nimport { icons } from \"lucide\";\n\nexport type LucideNode = [string, Record<string, string | number>];\nconst ICONS = icons as unknown as Record<string, LucideNode[] | undefined>;\nconst pascal = (name: string): string => name.replace(/(^|-)([a-z0-9])/g, (_m: string, _d: string, c: string) => c.toUpperCase());\n\n/** the nodes of a Lucide glyph by kebab-case name (`chef-hat`), undefined for a name Lucide does not have */\nexport function lucideNodes(name: string): LucideNode[] | undefined {\n  return /^[a-z0-9]+(-[a-z0-9]+)*$/.test(name) ? ICONS[pascal(name)] : undefined;\n}\n",
      "path": "icons/lucide-icons.ts",
      "target": "icons/lucide-icons.ts"
    }
  ],
  "meta": {
    "category": "primitives",
    "kind": "primitive",
    "tags": [
      "vue",
      "primitive"
    ]
  },
  "name": "lucide-icon",
  "registryDependencies": [
    "kit-icon",
    "recipes",
    "utils"
  ],
  "runtime": "vue",
  "title": "Lucide Icon",
  "type": "registry:ui"
}
