{"id":16979781,"url":"https://github.com/williamluke4/react-year-month-selector","last_synced_at":"2026-03-27T04:57:12.788Z","repository":{"id":57347896,"uuid":"117089779","full_name":"williamluke4/react-year-month-selector","owner":"williamluke4","description":"React Component for Selecting only the Year and Month","archived":false,"fork":false,"pushed_at":"2023-12-15T20:09:51.000Z","size":1056,"stargazers_count":2,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-01T15:45:07.909Z","etag":null,"topics":["month","picker","react","selector","year"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/williamluke4.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2018-01-11T11:11:57.000Z","updated_at":"2019-10-25T01:37:02.000Z","dependencies_parsed_at":"2022-08-28T03:01:48.250Z","dependency_job_id":null,"html_url":"https://github.com/williamluke4/react-year-month-selector","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/williamluke4%2Freact-year-month-selector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/williamluke4%2Freact-year-month-selector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/williamluke4%2Freact-year-month-selector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/williamluke4%2Freact-year-month-selector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/williamluke4","download_url":"https://codeload.github.com/williamluke4/react-year-month-selector/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248505853,"owners_count":21115353,"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":["month","picker","react","selector","year"],"created_at":"2024-10-14T01:47:05.382Z","updated_at":"2026-03-27T04:57:12.725Z","avatar_url":"https://github.com/williamluke4.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"React-Month-Picker-Input\n====================\n\n## Demo\n\nLive demo: [williamluke4.github.io/react-year-month-selector](https://williamluke4.github.io/react-year-month-selector/)\n\n## API\n\n| Name | Types | Default | Description |\n|---|---|---|---|\n| year | number | void | Preselect year in calendar |\n| month | number (0..11) | void | Preselect month in calendar.|\n| open | boolean | false | State on the dialog |\n| onChange | Function: (year: number, month: number) =\u003e any | - | onChange callback, receives `year` and `month`  |\n| onClose | Function: () =\u003e any | - | onChange callback, called when clicked outside of dialog |\n\n## Installation\n\n```\nnpm install react-year-month-selector --save\n```\n\n## Usage\n\nReact-Year-Month-Selector provides a dialog which returns the selected Year and Month\n\n```js\nimport YearMonthSelector from 'react-year-month-selector';\nimport 'react-year-month-selector/dist/react-year-month-selector.css';\n\n\u003cYearMonthSelector \n  year={2018} \n  month={1} \n  onChange={(year, month)=\u003e console.log(month)} \n  open={this.state.open} \n  onClose={this.handleClose}\n/\u003e\n\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwilliamluke4%2Freact-year-month-selector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwilliamluke4%2Freact-year-month-selector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwilliamluke4%2Freact-year-month-selector/lists"}