{"id":25232931,"url":"https://github.com/react-component/time-picker","last_synced_at":"2025-05-14T15:11:24.672Z","repository":{"id":2259663,"uuid":"44666759","full_name":"react-component/time-picker","owner":"react-component","description":"React TimePicker","archived":false,"fork":false,"pushed_at":"2024-05-07T07:47:29.000Z","size":6142,"stargazers_count":478,"open_issues_count":81,"forks_count":201,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-05-09T11:50:47.988Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://react-component.github.io/time-picker/","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/react-component.png","metadata":{"files":{"readme":"README.md","changelog":"HISTORY.md","contributing":null,"funding":null,"license":"LICENSE.md","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":"2015-10-21T09:43:25.000Z","updated_at":"2025-04-11T11:26:44.000Z","dependencies_parsed_at":"2024-11-15T12:16:29.157Z","dependency_job_id":null,"html_url":"https://github.com/react-component/time-picker","commit_stats":{"total_commits":225,"total_committers":50,"mean_commits":4.5,"dds":0.6533333333333333,"last_synced_commit":"ad43f4b4764110a1c03895c7bbcca469342e8e6c"},"previous_names":[],"tags_count":65,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-component%2Ftime-picker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-component%2Ftime-picker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-component%2Ftime-picker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-component%2Ftime-picker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/react-component","download_url":"https://codeload.github.com/react-component/time-picker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254170059,"owners_count":22026219,"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":[],"created_at":"2025-02-11T13:37:12.255Z","updated_at":"2025-05-14T15:11:24.630Z","avatar_url":"https://github.com/react-component.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TimePicker\n\nReact Time Picker Control.\n\n[![NPM version][npm-image]][npm-url]\n[![build status][circleci-image]][circleci-url]\n[![Test coverage][coveralls-image]][coveralls-url]\n[![Dependencies](https://img.shields.io/david/react-component/time-picker.svg?style=flat-square)](https://david-dm.org/react-component/time-picker)\n[![DevDependencies](https://img.shields.io/david/dev/react-component/time-picker.svg?style=flat-square)](https://david-dm.org/react-component/time-picker?type=dev)\n[![npm download][download-image]][download-url]\n[![Storybook](https://gw.alipayobjects.com/mdn/ob_info/afts/img/A*CQXNTZfK1vwAAAAAAAAAAABjAQAAAQ/original)](https://github.com/react-component/time-picker)\n\n[Storybook]: https://github.com/storybooks/press/blob/master/badges/storybook.svg\n[npm-image]: http://img.shields.io/npm/v/rc-time-picker.svg?style=flat-square\n[npm-url]: http://npmjs.org/package/rc-time-picker\n[circleci-image]: https://img.shields.io/circleci/react-component/time-picker.svg?style=flat-square\n[circleci-url]: https://circleci.com/gh/react-component/time-picker\n[coveralls-image]: https://img.shields.io/coveralls/react-component/time-picker.svg?style=flat-square\n[coveralls-url]: https://coveralls.io/r/react-component/time-picker?branch=maste\n[node-image]: https://img.shields.io/badge/node.js-%3E=_0.10-green.svg?style=flat-square\n[node-url]: http://nodejs.org/download/\n[download-image]: https://img.shields.io/npm/dm/rc-time-picker.svg?style=flat-square\n[download-url]: https://npmjs.org/package/rc-time-picker\n\nexample\n--------\n\nhttp://react-component.github.io/time-picker/\n\ninstall\n-------\n\n```\nnpm install rc-time-picker\n```\n\nUsage\n-----\n\n```\nimport TimePicker from 'rc-time-picker';\nimport ReactDOM from 'react-dom';\nimport 'rc-time-picker/assets/index.css';\nReactDOM.render(\u003cTimePicker /\u003e, container);\n```\n\nAPI\n---\n\n### TimePicker\n\n| Name                    | Type                              | Default | Description |\n|-------------------------|-----------------------------------|---------|-------------|\n| prefixCls               | String                            | 'rc-time-picker' | prefixCls of this component |\n| clearText               | String                            | 'clear' | clear tooltip of icon |\n| disabled                | Boolean                           | false   | whether picker is disabled |\n| allowEmpty              | Boolean                           | true | allow clearing text |\n| open                    | Boolean                           | false | current open state of picker. controlled prop |\n| defaultValue            | moment                            | null | default initial value |\n| defaultOpenValue        | moment                            | moment() | default open panel value, used to set utcOffset,locale if value/defaultValue absent |\n| value                   | moment                            | null | current value |\n| placeholder             | String                            | '' | time input's placeholder |\n| className               | String                            | '' | time picker className |\n| inputClassName          | String                            | '' | time picker input element className |\n| id                      | String                            | '' | time picker id |\n| popupClassName          | String                            | '' | time panel className |\n| popupStyle              | object                            | {} | customize popup style\n| showHour                | Boolean                           | true | whether show hour | |\n| showMinute              | Boolean                           | true | whether show minute |\n| showSecond              | Boolean                           | true | whether show second |\n| format                  | String                            | - | moment format |\n| disabledHours           | Function                          | - | disabled hour options |\n| disabledMinutes         | Function                          | - | disabled minute options |\n| disabledSeconds         | Function                          | - | disabled second options |\n| use12Hours              | Boolean                           | false | 12 hours display mode |\n| hideDisabledOptions     | Boolean                           | false | whether hide disabled options |\n| onChange                | Function                          | null | called when time-picker a different value |\n| onAmPmChange            | Function                          | null | called when time-picker an am/pm value |\n| addon                   | Function                          | - | called from timepicker panel to render some addon to its bottom, like an OK button. Receives panel instance as parameter, to be able to close it like `panel.close()`.|\n| placement               | String                            | bottomLeft | one of ['topLeft', 'topRight', 'bottomLeft', 'bottomRight'] |\n| transitionName          | String                            | ''  |  |\n| name                    | String                            | - | sets the name of the generated input |\n| onOpen                  | Function({ open })                |   | when TimePicker panel is opened      |\n| onClose                 | Function({ open })                |   | when TimePicker panel is closed      |\n| hourStep                | Number                            | 1 | interval between hours in picker  |\n| minuteStep              | Number                            | 1 | interval between minutes in picker  |\n| secondStep              | Number                            | 1 | interval between seconds in picker  |\n| focusOnOpen             | Boolean                           | false | automatically focus the input when the picker opens |\n| inputReadOnly             | Boolean                           | false | set input to read only |\n| inputIcon             | ReactNode                           |  | specific the time-picker icon. |\n| clearIcon             | ReactNode                           |  | specific the clear icon. |\n\n## Test Case\n\n```\nnpm test\n```\n\n## Coverage\n\n```\nnpm run coverage\n```\n\nopen coverage/ dir\n\nLicense\n-------\n\nrc-time-picker is released under the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freact-component%2Ftime-picker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freact-component%2Ftime-picker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freact-component%2Ftime-picker/lists"}