{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "input",
  "title": "Input",
  "description": "A single-line text box that links to its Field.",
  "registryDependencies": [
    "https://constella.aayush.cv/r/base.json",
    "https://constella.aayush.cv/r/input-group.json"
  ],
  "files": [
    {
      "path": "src/components/primitives/input.tsx",
      "content": "\"use client\";\n\nimport {\n  InputGroup,\n  InputGroupInput,\n  inputGroupSizes,\n} from \"@/components/primitives/input-group\";\nimport type {\n  InputGroupInputProps,\n  InputGroupSize,\n} from \"@/components/primitives/input-group\";\nimport type { Sx } from \"@/lib/constella/styles\";\n\nconst inputSizes = inputGroupSizes;\n\ntype InputSize = InputGroupSize;\n\n// `sx` styles the box; every other prop goes to the input inside it.\ntype InputProps = Omit<InputGroupInputProps, \"sx\"> & {\n  size?: InputSize;\n  sx?: Sx;\n};\n\nfunction Input({ size = \"default\", sx, ...props }: InputProps) {\n  return (\n    // A lone input is no group of controls.\n    <InputGroup role=\"none\" size={size} sx={sx}>\n      <InputGroupInput {...props} />\n    </InputGroup>\n  );\n}\n\nexport { Input, inputSizes };\nexport type { InputProps, InputSize };\n",
      "type": "registry:component"
    }
  ],
  "docs": "Usage: https://constella.aayush.cv/docs/components/input/index.md",
  "type": "registry:ui"
}