{
  "$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// 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"
    },
    {
      "content": "// Code generated by @ui8kit/codegen. DO NOT EDIT.\n/**\n * Box is the polymorphic structural primitive. `tag` accepts HTML5 structural\n * elements only (sections, lists, tables, fieldset); anything else falls back to div.\n * Forms use the Form primitive (Box no longer accepts `form`).\n */\n\nimport { splitProps, type JSX, type Component } from \"solid-js\";\nimport { Dynamic } from \"solid-js/web\";\nimport { boxClasses } from \"./box.shared\";\nimport { safeRest } from \"../../utils/expr\";\nimport { resolveTag, TagGroup } from \"../../utils/tags\";\n\n/**\n * Box renders the requested structural HTML element (default div).\n */\nexport type BoxProps = Omit<JSX.HTMLAttributes<HTMLElement>, \"class\" | \"className\" | \"children\" | \"tag\"> & {\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  className?: string;\n  children?: JSX.Element;\n};\n\nexport const Box: Component<BoxProps> = (props) => {\n  const [local, rest] = splitProps(props, [\"tag\", \"class\", \"className\", \"children\"]);\n  const resolvedTagValue = () => resolveTag(local.tag, \"div\", TagGroup.Box);\n  const cls = () => boxClasses({ className: local.class ?? local.className });\n  return (\n    <Dynamic component={resolvedTagValue()} {...(cls() ? { class: cls() } : {})} {...safeRest(rest)}>\n      {local.children}\n    </Dynamic>\n  );\n};\n",
      "path": "kit/ui/box/box.solid.tsx",
      "target": "kit/ui/box/box.solid.tsx"
    }
  ],
  "meta": {
    "category": "kit",
    "kind": "primitive",
    "tags": [
      "solid",
      "primitive"
    ]
  },
  "name": "kit-box",
  "registryDependencies": [
    "utils"
  ],
  "runtime": "solid",
  "title": "Kit Box",
  "type": "registry:ui"
}
