{"id":16212254,"url":"https://github.com/driaug/otp","last_synced_at":"2025-03-19T09:30:50.556Z","repository":{"id":187034799,"uuid":"676208643","full_name":"driaug/otp","owner":"driaug","description":"Minimalistic one-time password component for React, built with Tailwind and Typescript.","archived":false,"fork":false,"pushed_at":"2024-06-06T12:42:44.000Z","size":99,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-17T05:44:28.687Z","etag":null,"topics":["react","tailwind","typescript"],"latest_commit_sha":null,"homepage":"https://otp.driaug.com","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/driaug.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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-08-08T17:10:33.000Z","updated_at":"2025-03-11T10:44:24.000Z","dependencies_parsed_at":"2024-10-27T20:28:16.185Z","dependency_job_id":"111d70bb-69b6-4e8e-8412-3f8a911e4e94","html_url":"https://github.com/driaug/otp","commit_stats":null,"previous_names":["driaug/otp"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/driaug%2Fotp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/driaug%2Fotp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/driaug%2Fotp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/driaug%2Fotp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/driaug","download_url":"https://codeload.github.com/driaug/otp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244398456,"owners_count":20446429,"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":["react","tailwind","typescript"],"created_at":"2024-10-10T10:51:21.599Z","updated_at":"2025-03-19T09:30:50.209Z","avatar_url":"https://github.com/driaug.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# OTP Component\nA minimalistic one-time password component for React, built with Tailwind and Typescript.\n\nIncludes support for various OTP needs such as:\n- 🗑️ Backspace \u0026 delete\n- 🖨️ Copy \u0026 Paste\n- ⇥ Accessibility with tab\n\n![Alt text](./assets/image.png)\n\n## Basic Usage\n- Copy the [component](./demo/src/components/OTP.tsx) to your own project\n\n```tsx\n\u003cOTP onComplete={(otp) =\u003e console.log(otp)} /\u003e\n\n```\n\n## Parameters\n| Parameter  | Type             | Use                                                       |\n|------------|------------------|-----------------------------------------------------------|\n| onComplete | `(otp) =\u003e void;` | Function that will trigger once the password is filled in |\n| length     | `number`         | Number of boxes, defaults to `6`                          |\n| disabled   | `boolean`        | Disables the input, defaults to `false`                   |","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdriaug%2Fotp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdriaug%2Fotp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdriaug%2Fotp/lists"}