{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "UI8Kit 3 Box primitive (unstyled), from @ui8kit/registry",
  "devDependencies": [],
  "digest": "0.1.0",
  "files": [
    {
      "content": "<!-- Code generated by @ui8kit/codegen. DO NOT EDIT. -->\n<!--\n  Box renders the requested structural HTML element (default div).\n-->\n<script lang=\"ts\" module>\n  import type { Snippet } from \"svelte\";\n\n  export type BoxProps = {\n    tag?: \"div\" | \"section\" | \"article\" | \"aside\" | \"header\" | \"footer\" | \"main\" | \"nav\" | \"figure\" | \"search\" | \"ul\" | \"ol\" | \"li\" | \"dl\" | \"dt\" | \"dd\" | \"fieldset\" | \"table\" | \"thead\" | \"tbody\" | \"tfoot\" | \"tr\" | \"th\" | \"td\" | \"caption\" | \"colgroup\" | \"col\";\n    class?: string;\n    children?: Snippet;\n    [key: string]: unknown;\n  };\n</script>\n\n<script lang=\"ts\">\n  import { boxClasses } from \"./box.shared\";\n  import { safeRest } from \"../../utils/expr\";\n  import { resolveTag, TagGroup } from \"../../utils/tags\";\n\n  let {\n    tag,\n    class: className,\n    children,\n    ...rawRest\n  }: BoxProps = $props();\n\n  const rest = $derived(safeRest(rawRest));\n  const cls = $derived(boxClasses({ className }));\n  const resolvedTagValue = $derived(resolveTag(tag, \"div\", TagGroup.Box));\n</script>\n\n<svelte:element this={resolvedTagValue} {...(cls ? { class: cls } : {})} {...rest}>\n  {@render children?.()}\n</svelte:element>\n",
      "path": "kit/ui/box/Box.svelte",
      "target": "kit/ui/box/Box.svelte"
    },
    {
      "content": "// Code generated by @ui8kit/codegen. DO NOT EDIT.\n// ui.box — shared TypeScript contract (types + classes helpers)\n\nimport { cn } from \"../../utils\";\n\n/** Box renders the requested structural HTML element (default div). */\nexport type BoxBaseProps = {\n  tag?: \"div\" | \"section\" | \"article\" | \"aside\" | \"header\" | \"footer\" | \"main\" | \"nav\" | \"figure\" | \"search\" | \"ul\" | \"ol\" | \"li\" | \"dl\" | \"dt\" | \"dd\" | \"fieldset\" | \"table\" | \"thead\" | \"tbody\" | \"tfoot\" | \"tr\" | \"th\" | \"td\" | \"caption\" | \"colgroup\" | \"col\";\n};\n\nexport type BoxClassesInput = {\n  className?: string;\n};\n\n/** Compose Box classes without rendering — the cross-runtime `asChild` substitute. */\nexport function boxClasses(input: BoxClassesInput = {}): string {\n  return cn(input.className);\n}\n",
      "path": "kit/ui/box/box.shared.ts",
      "target": "kit/ui/box/box.shared.ts"
    }
  ],
  "meta": {
    "category": "kit",
    "kind": "primitive",
    "tags": [
      "svelte",
      "primitive"
    ]
  },
  "name": "kit-box",
  "registryDependencies": [
    "utils"
  ],
  "runtime": "svelte",
  "title": "Kit Box",
  "type": "registry:ui"
}
