{"id":20589717,"url":"https://github.com/patrick-s-young/react-time-textfield","last_synced_at":"2026-04-19T07:36:07.303Z","repository":{"id":65946138,"uuid":"601892549","full_name":"patrick-s-young/react-time-textfield","owner":"patrick-s-young","description":"A controlled Material-UI TextField for keyboard time input.","archived":false,"fork":false,"pushed_at":"2023-09-30T20:31:59.000Z","size":238,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-23T04:55:40.067Z","etag":null,"topics":["material-ui","react","textfield-validation","time"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/react-time-textfield","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/patrick-s-young.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-02-15T03:31:34.000Z","updated_at":"2023-10-01T07:56:46.000Z","dependencies_parsed_at":"2024-11-16T07:31:08.277Z","dependency_job_id":"36aa9e73-961f-47d7-9344-2bda34e7e5b6","html_url":"https://github.com/patrick-s-young/react-time-textfield","commit_stats":{"total_commits":10,"total_committers":2,"mean_commits":5.0,"dds":"0.19999999999999996","last_synced_commit":"bd4c89d3780d43b5112b21ace03e484ac88bc8e4"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/patrick-s-young/react-time-textfield","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrick-s-young%2Freact-time-textfield","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrick-s-young%2Freact-time-textfield/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrick-s-young%2Freact-time-textfield/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrick-s-young%2Freact-time-textfield/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/patrick-s-young","download_url":"https://codeload.github.com/patrick-s-young/react-time-textfield/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrick-s-young%2Freact-time-textfield/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31999169,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"online","status_checked_at":"2026-04-19T02:00:07.110Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["material-ui","react","textfield-validation","time"],"created_at":"2024-11-16T07:31:02.695Z","updated_at":"2026-04-19T07:36:07.279Z","avatar_url":"https://github.com/patrick-s-young.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React-Time-TextField\n\nA controlled Material-UI TextField for keyboard time input.\n\n![react-time-textfield-demo](https://user-images.githubusercontent.com/42591798/219899124-abe75346-f33a-4371-8d22-34c729d31ecf.gif)\n\n## Quick Start\n\n- Install by executing `npm install react-time-textfield` or `yarn add react-time-textfield`.\n- Import by adding `import { ReactTimeTextField } from 'react-time-textfield'`.\n- Use by adding `\u003cReactTimeTextField /\u003e`. Assign callback to `onBlur` prop to receive new value.\n- Hours/Minutes/Meridiem can be input using both keyboard and up/down arrows. Use Tab and right/left arrows to navigate.\n\n\n## Getting started\n\n### Installation\n\nAdd React-Time-TextField to your project by executing `npm install react-time-textfield` or `yarn add react-time-textfield`.\n\n### Usage\n\nHere is an example of basic usage:\n\n```js\nimport React, { useState } from 'react';\nimport { ReactTimeTextField } from 'react-time-textfield';\n\nfunction MyApp() {\n  const [value, setValue] = useState(new Date());\n\n  return (\n   \u003cReactTimeTextField\n    value={value}\n    label='Start Time'\n    onBlur={setValue}\n   /\u003e\n  );\n}\n```\n\n### Custom styling\n\nReactTimeTextField uses Material-UI TextField. Just pass any styling-related props that the Mui TextField component uses and they will be applied:\n```\n \u003cReactTimeTextField\n  value={value}\n  label='Start Time'\n  onBlur={setValue}\n  size='large'\n  styles={{ width: '100px', height: '60px' }}\n /\u003e\n```\n\nNOTE: *onChange*, *onKeyDown*, and *onClick* props are used internally and are not available. Use *onBlur* callback to receive date object with specified time value.\n\n\n\n## License\n\nThe MIT License.\n\n## Author\n[Patrick S. Young](https://github.com/patrick-s-young)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatrick-s-young%2Freact-time-textfield","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpatrick-s-young%2Freact-time-textfield","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatrick-s-young%2Freact-time-textfield/lists"}