{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "input-26",
  "title": "Search with icon and button",
  "description": "A search icon before the query and a submit arrow after it.",
  "dependencies": [],
  "registryDependencies": [
    "https://ui.ndekocode.dev/r/field.json",
    "https://ui.ndekocode.dev/r/icons.json",
    "https://ui.ndekocode.dev/r/input.json",
    "https://ui.ndekocode.dev/r/theme.json"
  ],
  "files": [
    {
      "path": "registry/ndeko/components/input/input-26.tsx",
      "content": "import { ArrowRightIcon, SearchIcon } from '@/registry/ndeko/lib/icons';\nimport { Field, FieldLabel } from '@/registry/ndeko/ui/field';\nimport { Input } from '@/registry/ndeko/ui/input';\n\nconst FIELD_BUTTON =\n  'text-muted-foreground hover:bg-foreground/5 hover:text-foreground focus-visible:ring-ring/25 absolute inset-y-0 end-1 my-auto flex size-6 items-center justify-center rounded-md outline-none transition-[color,background-color,box-shadow] focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50';\n\nexport default function Input26() {\n  return (\n    <Field className='w-full max-w-xs'>\n      <FieldLabel>Search</FieldLabel>\n      <div className='relative'>\n        <Input\n          className='peer ps-8 pe-8'\n          type='search'\n          placeholder='Search projects'\n        />\n        <span className='text-muted-foreground pointer-events-none absolute inset-y-0 start-0 flex w-8 items-center justify-center peer-disabled:opacity-50'>\n          <SearchIcon className='size-4' />\n        </span>\n        <button type='submit' className={FIELD_BUTTON} aria-label='Search'>\n          <ArrowRightIcon className='size-4' />\n        </button>\n      </div>\n    </Field>\n  );\n}\n",
      "type": "registry:component"
    }
  ],
  "categories": [
    "components",
    "input"
  ],
  "type": "registry:component"
}