{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"shadcn-studio/input-38","type":"registry:component","title":"Input 38","description":"Search input field with search icon and microphone button for voice input","dependencies":["lucide-react"],"registryDependencies":["button","input-group","label"],"files":[{"path":"src/registry/new-york/components/input/input-38.tsx","content":"import { useId } from 'react'\n\nimport { MicIcon, SearchIcon } from 'lucide-react'\n\nimport { Button } from '@/registry/new-york/ui/button'\nimport { InputGroup, InputGroupAddon, InputGroupInput } from '@/registry/new-york/ui/input-group'\nimport { Label } from '@/registry/new-york/ui/label'\n\nconst InputSearchIconDemo = () => {\n  const id = useId()\n\n  return (\n    <div className='w-full max-w-xs space-y-2'>\n      <Label htmlFor={id}>Search input with icon and button</Label>\n      <InputGroup>\n        <InputGroupAddon>\n          <SearchIcon className='size-4' />\n          <span className='sr-only'>Search</span>\n        </InputGroupAddon>\n        <InputGroupInput\n          id={id}\n          type='search'\n          placeholder='Search...'\n          className='[&::-webkit-search-cancel-button]:appearance-none [&::-webkit-search-decoration]:appearance-none [&::-webkit-search-results-button]:appearance-none [&::-webkit-search-results-decoration]:appearance-none'\n        />\n        <InputGroupAddon align='inline-end'>\n          <Button variant='ghost' size='icon' className='text-muted-foreground hover:bg-transparent'>\n            <MicIcon />\n            <span className='sr-only'>Press to speak</span>\n          </Button>\n        </InputGroupAddon>\n      </InputGroup>\n    </div>\n  )\n}\n\nexport default InputSearchIconDemo\n","type":"registry:component","target":"components/shadcn-studio/input/input-38.tsx"}]}