{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [
    "lucide"
  ],
  "description": "LucideIcon: Icon + recipe lucide-icon.",
  "devDependencies": [],
  "digest": "0.1.0",
  "files": [
    {
      "content": "// Code generated by packages/kit-compose/src/build.ts from src/map.ts + variants/. DO NOT EDIT.\nimport { splitProps, type ComponentProps } from \"solid-js\";\nimport { Icon as Prim } from \"../kit/ui/icon/icon.solid\";\nimport { cn } from \"../kit/utils\";\nimport { rc } from \"./recipes\";\n\nexport type LucideIconProps = Omit<ComponentProps<typeof Prim>, \"tag\" | \"class\" | \"className\"> & { class?: string; className?: string };\n\n/** LucideIcon: Icon + recipe lucide-icon. */\nexport function LucideIcon(props: LucideIconProps) {\n  const [local, rest] = splitProps(props, [\"class\", \"className\"]);\n  return <Prim class={cn(rc(\"lucide-icon\", {  }), local.class ?? local.className)} {...rest} />;\n}\n",
      "path": "compose/lucide-icon.solid.tsx",
      "target": "compose/lucide-icon.solid.tsx"
    },
    {
      "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 */\nimport { For, type JSX } from \"solid-js\";\nimport { Dynamic } from \"solid-js/web\";\nimport { LucideIcon as Frame } from \"../compose\";\nimport { lucideNodes } from \"./lucide-icons\";\n\nexport type LucideIconProps = { name: string; size?: number; strokeWidth?: number; label?: string; class?: string };\n\nexport function LucideIcon(props: LucideIconProps): JSX.Element {\n  const nodes = () => lucideNodes(props.name) ?? lucideNodes(\"circle\") ?? [];\n  return (\n    <Frame label={props.label} class={props.class} data-lucide={props.name}>\n      <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width={props.size ?? 16} height={props.size ?? 16} fill=\"none\" stroke=\"currentColor\"\n        stroke-width={props.strokeWidth ?? 2} stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\">\n        <For each={nodes()}>{([tag, attrs]) => <Dynamic component={tag} {...attrs} />}</For>\n      </svg>\n    </Frame>\n  );\n}\n",
      "path": "icons/LucideIcon.tsx",
      "target": "icons/LucideIcon.tsx"
    },
    {
      "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": [
      "solid",
      "primitive"
    ]
  },
  "name": "lucide-icon",
  "registryDependencies": [
    "compose",
    "kit-icon",
    "recipes",
    "utils"
  ],
  "runtime": "solid",
  "title": "Lucide Icon",
  "type": "registry:ui"
}
