{"id":23442247,"url":"https://github.com/teamwertarbyte/material-ui-time-picker","last_synced_at":"2025-04-07T11:06:00.268Z","repository":{"id":25984972,"uuid":"107033839","full_name":"TeamWertarbyte/material-ui-time-picker","owner":"TeamWertarbyte","description":"A time picker for Material-UI.","archived":false,"fork":false,"pushed_at":"2023-01-26T04:05:50.000Z","size":4089,"stargazers_count":127,"open_issues_count":17,"forks_count":19,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-31T09:06:56.485Z","etag":null,"topics":["material-design","material-ui","react","time-picker","ui-components"],"latest_commit_sha":null,"homepage":"https://mui.wertarbyte.com/#material-ui-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/TeamWertarbyte.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":["leMaik","saschb2b"]}},"created_at":"2017-10-15T17:33:21.000Z","updated_at":"2024-03-30T11:46:21.000Z","dependencies_parsed_at":"2023-02-14T14:01:31.853Z","dependency_job_id":null,"html_url":"https://github.com/TeamWertarbyte/material-ui-time-picker","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TeamWertarbyte%2Fmaterial-ui-time-picker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TeamWertarbyte%2Fmaterial-ui-time-picker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TeamWertarbyte%2Fmaterial-ui-time-picker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TeamWertarbyte%2Fmaterial-ui-time-picker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TeamWertarbyte","download_url":"https://codeload.github.com/TeamWertarbyte/material-ui-time-picker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247640462,"owners_count":20971557,"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":["material-design","material-ui","react","time-picker","ui-components"],"created_at":"2024-12-23T17:29:03.041Z","updated_at":"2025-04-07T11:06:00.241Z","avatar_url":"https://github.com/TeamWertarbyte.png","language":"JavaScript","funding_links":["https://github.com/sponsors/leMaik","https://github.com/sponsors/saschb2b"],"categories":[],"sub_categories":[],"readme":"# material-ui-time-picker\n[![npm Package](https://img.shields.io/npm/v/material-ui-time-picker.svg)](https://www.npmjs.com/package/material-ui-time-picker)\n[![Build Status](https://travis-ci.org/TeamWertarbyte/material-ui-time-picker.svg?branch=master)](https://travis-ci.org/TeamWertarbyte/material-ui-time-picker)\n[![Coverage Status](https://coveralls.io/repos/github/TeamWertarbyte/material-ui-time-picker/badge.svg?branch=master)](https://coveralls.io/github/TeamWertarbyte/material-ui-time-picker?branch=master)\n\nThis project provides a [time picker][time-picker-spec] for [Material-UI][material-ui].\n\n![Demo](demo.gif)\n\n## Installation\n```\nnpm i --save material-ui-time-picker\n```\n\n## Usage\nThere are multiple ways to use this component to allow greater flexibility. This is the most basic usage that behaves similar to the [Material-UI 0.x time picker][legacy-time-picker]:\n\n```jsx\nimport TimeInput from 'material-ui-time-picker'\n\n// uncontrolled input\n\u003cTimeInput\n  mode='12h'\n  onChange={(time) =\u003e this.handleChange(time)}\n/\u003e\n\n// controlled input\n\u003cTimeInput\n  mode='12h'\n  value={this.state.time}\n  onChange={(time) =\u003e this.handleChange(time)}\n/\u003e\n```\n\nFor detailed documentation, take a look into the [styleguide][]. The source code, especially the tests, might also be helpful.\n\n## TimeInput Properties\n|Name|Type|Default|Description|\n|---|---|---|---|\n|autoOk|`bool`|`false`|If true, automatically accept and close the picker on set minutes.|\n|cancelLabel|`string`|`'Cancel'`|Override the label of the cancel button.|\n|ClockProps|`object`||Properties to pass down to the Clock component.|\n|defaultValue|`Date`||This default value overrides initialTime and placeholder.|\n|initialTime|`Date`||The default value for the time picker.|\n|inputComponent|`elementType`|`Input`|The component used for the input. Either a string to use a DOM element or a component.|\n|placeholder|`string`||The placeholder value for the time picker before a time has been selected.|\n|mode|`enum: '12h' '24h'`|`'12h'`|Sets the clock mode, 12-hour or 24-hour clocks are supported.|\n|okLabel|`string`|`'Ok'`|Override the label of the ok button.|\n|onChange|`func`||Callback that is called with the new date (as Date instance) when the value is changed.|\n|openOnMount|`bool`||If true, automatically opens the dialog when the component is mounted.|\n|TimePickerProps|`object`||Properties to pass down to the TimePicker component.|\n|value|`Date`||The value of the time picker, for use in controlled mode.|\n\nNote: `TimeInput` behaves like Material-UI's `Input` component and can be used inside `FormControl`s.\n\n## License\nThe files included in this repository are licensed under the MIT license.\n\n[time-picker-spec]: https://material.io/guidelines/components/pickers.html#pickers-time-pickers\n[material-ui]: https://material-ui.com/\n[legacy-time-picker]: http://v0.material-ui.com/#/components/time-picker\n[styleguide]: https://teamwertarbyte.github.io/material-ui-time-picker\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteamwertarbyte%2Fmaterial-ui-time-picker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fteamwertarbyte%2Fmaterial-ui-time-picker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteamwertarbyte%2Fmaterial-ui-time-picker/lists"}