{"id":21107515,"url":"https://github.com/freemagee/react-debounced-input","last_synced_at":"2026-04-24T08:31:21.086Z","repository":{"id":70026557,"uuid":"242170087","full_name":"freemagee/react-debounced-input","owner":"freemagee","description":"React form input with debounced behaviour","archived":false,"fork":false,"pushed_at":"2024-04-23T02:17:37.000Z","size":745,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-14T09:24:00.382Z","etag":null,"topics":["controlled-components","debounce","debouncing","input","react","reactjs"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/freemagee.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-02-21T15:26:08.000Z","updated_at":"2020-02-21T16:54:26.000Z","dependencies_parsed_at":"2024-11-20T03:47:04.655Z","dependency_job_id":null,"html_url":"https://github.com/freemagee/react-debounced-input","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/freemagee/react-debounced-input","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freemagee%2Freact-debounced-input","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freemagee%2Freact-debounced-input/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freemagee%2Freact-debounced-input/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freemagee%2Freact-debounced-input/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/freemagee","download_url":"https://codeload.github.com/freemagee/react-debounced-input/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freemagee%2Freact-debounced-input/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32216130,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T08:24:32.376Z","status":"ssl_error","status_checked_at":"2026-04-24T08:24:26.731Z","response_time":64,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["controlled-components","debounce","debouncing","input","react","reactjs"],"created_at":"2024-11-20T00:40:18.593Z","updated_at":"2026-04-24T08:31:21.069Z","avatar_url":"https://github.com/freemagee.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React Debounced Input\n\nA react form input component that adds a \"debounced\" delay to input `onChange` events. This is a controlled element, so it must have a container component that passes props to it. \n\n[Demo](https://freemagee.github.io/react-debounced-input/)\n\n## Table of Contents\n\n- [Installation](#installation)\n- [Usage](#usage)\n\n## Installation\n\nThe **DelayedInput** component is located in */src/*. It has no external dependencies. You can take either the DelayedInput *dir*, or the DelayedInput.js *file*.\n\n## Usage\n\nExample usage in an App:\n\n```javascript\nimport React, { useState } from \"react\";\nimport { DelayedInput } from \"./DelayedInput\";\n\nfunction App() {\n  const initialInput = \"The initial input\";\n  const [input, setInput] = useState(initialInput);\n  return (\n    \u003cApp\u003e\n      \u003cDelayedInput\n        type=\"text\"\n        initialValue={initialInput}\n        inputDelay={500}\n        placeHolder=\"Enter search term\"\n        setInput={setInput}\n      /\u003e\n    \u003c/App\u003e\n  );\n}\n\nexport default App;\n```\n\n### Props\n\n**DelayedInput** uses these props:\n\n```javascript\nDelayedInput.propTypes = {\n  type: PropTypes.string,\n  initialValue: PropTypes.string,\n  inputDelay: PropTypes.number,\n  placeHolder: PropTypes.string,\n  setInput: PropTypes.func.isRequired\n};\n```\n\nMost props have a default value if they are not provided:\n\n```\ntype = \"text\"\ninitialValue = \"\"\ninputDelay = 300\nplaceHolder = \"\"\n```\n\n`setInput` is a callback function passed in as a prop from it's container component. That will feed back the new values and \"lift state up\".","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreemagee%2Freact-debounced-input","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffreemagee%2Freact-debounced-input","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreemagee%2Freact-debounced-input/lists"}