{"id":21996017,"url":"https://github.com/andria-dev/mui-phone-input","last_synced_at":"2026-04-13T22:33:06.876Z","repository":{"id":57304903,"uuid":"166497097","full_name":"andria-dev/mui-phone-input","owner":"andria-dev","description":"A phone number input built with material-ui's TextField","archived":false,"fork":false,"pushed_at":"2019-10-05T23:49:14.000Z","size":448,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-23T04:25:58.383Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://codesandbox.io/s/3x2kwrxyjm","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andria-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-01-19T02:22:05.000Z","updated_at":"2020-12-09T04:04:16.000Z","dependencies_parsed_at":"2022-09-20T21:02:57.126Z","dependency_job_id":null,"html_url":"https://github.com/andria-dev/mui-phone-input","commit_stats":null,"previous_names":["chrisbrownie55/mui-phone-input"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/andria-dev/mui-phone-input","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andria-dev%2Fmui-phone-input","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andria-dev%2Fmui-phone-input/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andria-dev%2Fmui-phone-input/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andria-dev%2Fmui-phone-input/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andria-dev","download_url":"https://codeload.github.com/andria-dev/mui-phone-input/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andria-dev%2Fmui-phone-input/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31774028,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T20:17:16.280Z","status":"ssl_error","status_checked_at":"2026-04-13T20:17:08.216Z","response_time":93,"last_error":"SSL_read: 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":[],"created_at":"2024-11-29T21:19:51.304Z","updated_at":"2026-04-13T22:33:06.855Z","avatar_url":"https://github.com/andria-dev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mui-phone-input\n\nThis is a simple wrapper around material-ui's `\u003cTextField\u003e` component. This wrapper handles the input as a phone number. It only allows numbers, and dashes are automatically inserted and removed while typing.\n\nHere is what the input looks like while typing:\n\n![GIF of typing numbers into input](mui-phone-input.gif)\n\n# Install\n\n```bash\nnpm i mui-phone-input\n# or\nyarn add mui-phone-input\n```\n\n# Usage with React\n\nAll properties available to [material-ui's `\u003cTextField\u003e`](https://material-ui.com/api/text-field/) are available to `\u003cPhoneInput\u003e`.\n\nHere is a minimal example of using the input:\n\n```jsx\nimport React from 'react';\nimport PhoneInput from 'mui-phone-input';\n\nfunction App() {\n  const [value, setValue] = React.useState('');\n  return (\n    \u003cdiv\u003e\n      \u003cPhoneInput onChange={setValue} /\u003e\n      \u003cp\u003eYour phone number is {value}\u003c/p\u003e\n    \u003c/div\u003e\n  );\n}\n```\n\n### Notes:\n\n- 90% of the time, you won't need to use two-way data binding. This is due to the fact that this input formats everything for you.\n- However, two-way data binding is still available.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandria-dev%2Fmui-phone-input","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandria-dev%2Fmui-phone-input","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandria-dev%2Fmui-phone-input/lists"}