{"id":20800159,"url":"https://github.com/octagon-simon/otp-app","last_synced_at":"2025-05-07T00:08:48.670Z","repository":{"id":230255374,"uuid":"657170725","full_name":"Octagon-simon/otp-app","owner":"Octagon-simon","description":"This is a fully customizable React JS component that you use within your project to enable OTP Code submissions. This component does not make use of any external library!","archived":false,"fork":false,"pushed_at":"2024-10-17T21:32:25.000Z","size":747,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-07T00:08:35.412Z","etag":null,"topics":["component","no-libraries","octagon-simon","otp","otp-verification","otpauth","react","react-components","reactjs"],"latest_commit_sha":null,"homepage":"https://otp-app-n4sh.onrender.com/","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/Octagon-simon.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":"2023-06-22T13:21:56.000Z","updated_at":"2025-02-27T14:00:42.000Z","dependencies_parsed_at":"2024-03-28T17:55:36.488Z","dependency_job_id":"793fb883-89bf-42e3-ada2-924a75e97d8d","html_url":"https://github.com/Octagon-simon/otp-app","commit_stats":null,"previous_names":["octagon-simon/otp-app"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Octagon-simon%2Fotp-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Octagon-simon%2Fotp-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Octagon-simon%2Fotp-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Octagon-simon%2Fotp-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Octagon-simon","download_url":"https://codeload.github.com/Octagon-simon/otp-app/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252788527,"owners_count":21804284,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["component","no-libraries","octagon-simon","otp","otp-verification","otpauth","react","react-components","reactjs"],"created_at":"2024-11-17T18:12:28.994Z","updated_at":"2025-05-07T00:08:48.635Z","avatar_url":"https://github.com/Octagon-simon.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"### React-OTP Component\n\nThis is a highly customizable React JS component that you use within your project to enable OTP Code submissions.\n\n[View the live demo here](https://otp-app-n4sh.onrender.com/)\n\n## INSTALLATION STEPS\n\n\u003e Please note that this component does not make use of any external library and this means that you can literally copy these files `src/otpInputs.js` \u0026\u0026 `src/otpInputs.module.css` into your project and you're good to go\n\n\u003e You can also run the project directly on [codeSandbox](https://codesandbox.io/p/sandbox/otp-6p45lz)\n\nAfter cloning the repo or downloading the source code, run `npm install` to install all dependencies.\n\n```bash\n$ npm install\n```\n\nWhen the dependencies are installed, and you encounter a babel error, run the command below to resolve this error\n\n```bash\n$ npm install --save-dev @babel/plugin-proposal-private-property-in-object --legacy-peer-deps\n```\n\nNow Fire up your server 🔥\n\n```bash\n$ npm run start\n```\n\nVisit the server at `http://localhost:3000` to view the app\n\n## CONFIGURATION\n\n- From `v1.1`, `autoSubmit` is configurable when you call the component `\u003cOTPInputGroup autoSubmit={false} /\u003e`. \n  - If you set this prop to `true`, the form will call the submit function once all boxes has been filled, otherwise, you need to hit the submit button for the form to be submitted.\n\n- This simple app supports both Numbers and Letters. \n  - If you need only numbers or letters, be sure to modify it to suit your project.\n\n\n## Read the article here\n\n[On Medium](https://simon-ugorji.medium.com/how-to-create-an-otp-input-box-in-react-js-next-js-3acc6adf5d6b)\n \n## PREVIEW\n\n![otpInput-ezgif com-speed-1](https://github.com/KaboCash/react-otp-input/assets/68190998/93ee6ca8-ca87-4501-a13a-eb9f118816ae)\n\nNot playing? [click here to view it](https://github.com/KaboCash/react-otp-input/assets/68190998/93ee6ca8-ca87-4501-a13a-eb9f118816ae)\n\n## Watch the Preview\n\n[On YouTube](https://youtu.be/R5SziarxAu4)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foctagon-simon%2Fotp-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foctagon-simon%2Fotp-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foctagon-simon%2Fotp-app/lists"}