{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "input",
  "title": "Input",
  "description": "A single-line text field: a well with the control edge as an inset ring, and the focus wake.",
  "dependencies": [
    "@base-ui/react@^1.9.0"
  ],
  "registryDependencies": [
    "https://sproutboat.com/ikada/r/theme.json",
    "https://sproutboat.com/ikada/r/cn.json"
  ],
  "files": [
    {
      "path": "registry/ikada/ui/input.tsx",
      "content": "\"use client\";\n\nimport { Input as BaseInput } from \"@base-ui/react/input\";\nimport type { ComponentProps } from \"react\";\nimport { cn, coarseTarget, fieldSurface, focusRing } from \"@/components/ikada/lib/cn\";\n\nexport const inputStyles = cn(\n  \"h-(--sb-control-h) w-full min-w-0 px-3 text-sb-base\",\n  fieldSurface,\n  \"placeholder:text-fg-muted pointer-coarse:text-[16px]\",\n  \"read-only:bg-hover [&[type=number]]:tabular-nums\",\n  focusRing,\n  coarseTarget,\n);\n\nexport interface InputProps extends Omit<ComponentProps<typeof BaseInput>, \"className\"> {\n  className?: string;\n  /** Marks the field invalid: danger ring and aria-invalid. Prefer the Field error. */\n  invalid?: boolean;\n  /** Monospace face for ids, keys and hashes. */\n  mono?: boolean;\n}\n\n/** A single-line text field: a well with the control edge as an inset ring, and the focus wake. */\nexport function Input({ invalid, mono, className, ref, ...props }: InputProps) {\n  return (\n    <BaseInput\n      data-slot=\"input\"\n      ref={ref}\n      aria-invalid={invalid || undefined}\n      className={cn(inputStyles, mono && \"font-mono text-sb-sm\", className)}\n      {...props}\n    />\n  );\n}\n",
      "type": "registry:ui",
      "target": "@components/ikada/input.tsx"
    }
  ],
  "categories": [
    "forms"
  ],
  "type": "registry:ui"
}