{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "input-18",
  "title": "Input with end select",
  "description": "A domain ending picked from a native select after the name.",
  "dependencies": [
    "@base-ui/react"
  ],
  "registryDependencies": [
    "https://ui.ndekocode.dev/r/field.json",
    "https://ui.ndekocode.dev/r/recipes.json",
    "https://ui.ndekocode.dev/r/select-native.json",
    "https://ui.ndekocode.dev/r/theme.json",
    "https://ui.ndekocode.dev/r/utils.json"
  ],
  "files": [
    {
      "path": "registry/ndeko/components/input/input-18.tsx",
      "content": "import { Input as InputPrimitive } from '@base-ui/react/input';\n\nimport { CONTROL_RECIPE } from '@/registry/ndeko/lib/recipes';\nimport { cn } from '@/registry/ndeko/lib/utils';\nimport { Field, FieldLabel } from '@/registry/ndeko/ui/field';\nimport { SelectNative } from '@/registry/ndeko/ui/select-native';\n\nconst EXTENSIONS = ['.com', '.org', '.net'];\n\nconst GROUP = cn(\n  CONTROL_RECIPE,\n  'flex h-8 items-stretch overflow-hidden',\n  'focus-within:border-foreground/30 focus-within:ring-ring/25 dark:focus-within:border-foreground/25 focus-within:ring-[3px]'\n);\n\nconst BARE_INPUT =\n  'placeholder:text-muted-foreground/75 h-full min-w-0 flex-1 bg-transparent px-2.5 outline-none';\n\nconst BARE_SELECT =\n  'text-muted-foreground hover:text-foreground h-full w-fit rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0 dark:bg-transparent';\n\nconst SEPARATOR =\n  'bg-foreground/12 dark:bg-foreground/15 w-(--hairline) shrink-0';\n\nexport default function Input18() {\n  return (\n    <Field className='w-full max-w-xs'>\n      <FieldLabel>Domain</FieldLabel>\n      <div className={GROUP}>\n        <InputPrimitive className={BARE_INPUT} placeholder='acme' />\n        <span className={SEPARATOR} aria-hidden='true' />\n        <SelectNative className={BARE_SELECT} aria-label='Domain extension'>\n          {EXTENSIONS.map((extension) => (\n            <option key={extension} value={extension}>\n              {extension}\n            </option>\n          ))}\n        </SelectNative>\n      </div>\n    </Field>\n  );\n}\n",
      "type": "registry:component"
    }
  ],
  "categories": [
    "components",
    "input"
  ],
  "type": "registry:component"
}