{"id":22181174,"url":"https://github.com/viclafouch/mui-otp-input","last_synced_at":"2025-04-11T22:30:03.904Z","repository":{"id":58824672,"uuid":"532631419","full_name":"viclafouch/mui-otp-input","owner":"viclafouch","description":"📌 A One-Time Password input designed for the React library MUI","archived":false,"fork":false,"pushed_at":"2025-03-07T14:04:24.000Z","size":5939,"stargazers_count":137,"open_issues_count":3,"forks_count":27,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-03T05:09:34.903Z","etag":null,"topics":["form","javascript","material","mui","otp","otpt","password","react","typescript"],"latest_commit_sha":null,"homepage":"https://viclafouch.github.io/mui-otp-input","language":"TypeScript","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/viclafouch.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":"2022-09-04T19:01:48.000Z","updated_at":"2025-03-11T07:35:07.000Z","dependencies_parsed_at":"2024-12-08T19:33:41.133Z","dependency_job_id":"80831888-6920-4db6-b057-956829f055d5","html_url":"https://github.com/viclafouch/mui-otp-input","commit_stats":{"total_commits":69,"total_committers":4,"mean_commits":17.25,"dds":0.05797101449275366,"last_synced_commit":"2ebc486150cc35b896f1fa078170e08508eb7645"},"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viclafouch%2Fmui-otp-input","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viclafouch%2Fmui-otp-input/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viclafouch%2Fmui-otp-input/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viclafouch%2Fmui-otp-input/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/viclafouch","download_url":"https://codeload.github.com/viclafouch/mui-otp-input/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248489363,"owners_count":21112556,"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":["form","javascript","material","mui","otp","otpt","password","react","typescript"],"created_at":"2024-12-02T09:26:53.122Z","updated_at":"2025-04-11T22:30:03.871Z","avatar_url":"https://github.com/viclafouch.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\u003ch1\u003eMUI OTP input\u003c/h1\u003e\n  \u003cp\u003eAn OTP input designed for the React library \u003ca href=\"https://mui.com/\"\u003eMUI\u003c/a\u003e\u003c/p\u003e\n\u003c/div\u003e\n\u003cdiv align=\"center\"\u003e\n\n[![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/viclafouch/mui-otp-input/blob/main/LICENSE)\n![ts](https://badgen.net/badge/Built%20With/TypeScript/blue)\n[![npm](https://img.shields.io/npm/v/mui-one-time-password-input)](https://www.npmjs.com/package/mui-one-time-password-input)\n\n\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/viclafouch/mui-otp-input/blob/main/mui-otp-input.gif\" width=\"100%\" /\u003e\n\u003c/div\u003e\n\n\n\u003c/div\u003e\n\n## Installation\n\n```\n// with npm\nnpm install mui-one-time-password-input\n\n// with yarn\nyarn add mui-one-time-password-input\n```\n\n## Usage\n\n```jsx\nimport React from 'react'\nimport { MuiOtpInput } from 'mui-one-time-password-input'\n\nconst MyComponent = () =\u003e {\n  const [otp, setOtp] = React.useState('')\n\n  const handleChange = (newValue) =\u003e {\n    setOtp(newValue)\n  }\n\n  return (\n    \u003cMuiOtpInput value={otp} onChange={handleChange} /\u003e\n  )\n}\n```\n\n## Next.js integration\n\nLearn how to use MUI OTP Input with [Next.js](https://nextjs.org/).\n\nOnce you have installed `MUI OTP Input` in your next.js project, it is important to transpile it as it is an ESM package first.\n\n```js\n/** @type {import('next').NextConfig} */\nconst nextConfig = {\n transpilePackages: ['mui-one-time-password-input'],\n // your config\n}\n\nmodule.exports = nextConfig\n```\n\n## [Documentation](https://viclafouch.github.io/mui-otp-input/)\n\n## Changelog\n\nGo to [Github Releases](https://github.com/viclafouch/mui-otp-input/releases)\n\n## TypeScript\n\nThis library comes with TypeScript \"typings\". If you happen to find any bugs in those, create an issue.\n\n### 🐛 Bugs\n\nPlease file an issue for bugs, missing documentation, or unexpected behavior.\n\n### 💡 Feature Requests\n\nPlease file an issue to suggest new features. Vote on feature requests by adding\na 👍. This helps maintainers prioritize what to work on.\n\n## LICENSE\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fviclafouch%2Fmui-otp-input","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fviclafouch%2Fmui-otp-input","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fviclafouch%2Fmui-otp-input/lists"}