{"id":26529029,"url":"https://github.com/faustienf/datepicker","last_synced_at":"2026-04-16T04:33:18.405Z","repository":{"id":157386316,"uuid":"432310024","full_name":"faustienf/datepicker","owner":"faustienf","description":"📅 Make your DatePicker from calendar-components","archived":false,"fork":false,"pushed_at":"2022-03-23T20:18:12.000Z","size":1534,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-21T16:21:19.149Z","etag":null,"topics":["datepicker","daterange","daterange-picker","react","react-date-picker","react-date-range","typescript"],"latest_commit_sha":null,"homepage":"","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/faustienf.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":"2021-11-26T21:57:41.000Z","updated_at":"2022-03-21T21:01:55.000Z","dependencies_parsed_at":"2023-05-02T07:30:58.478Z","dependency_job_id":null,"html_url":"https://github.com/faustienf/datepicker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/faustienf/datepicker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faustienf%2Fdatepicker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faustienf%2Fdatepicker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faustienf%2Fdatepicker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faustienf%2Fdatepicker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/faustienf","download_url":"https://codeload.github.com/faustienf/datepicker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faustienf%2Fdatepicker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31871667,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"online","status_checked_at":"2026-04-16T02:00:06.042Z","response_time":69,"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":["datepicker","daterange","daterange-picker","react","react-date-picker","react-date-range","typescript"],"created_at":"2025-03-21T16:20:22.583Z","updated_at":"2026-04-16T04:33:18.398Z","avatar_url":"https://github.com/faustienf.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[\u003cimg src=\"https://raw.githubusercontent.com/faustienf/datepicker/main/public/datepicker-range.png\" width=\"600\"\u003e](https://faustienf.github.io/datepicker/?path=/story/datepicker-range--default)\n# ⚛️ Modular DatePicker\n\nMake your DatePicker from calendar-components 📅 [Demo](https://faustienf.github.io/datepicker/?path=/story/datepicker-range--default)\n\n## Usage\n\n#### Simple datepicker\n```js\n// write a facade-component\nconst DatepickerSimple: FC\u003cProps\u003e = (props) =\u003e {\n  const {\n    selected = 0 as Timestamp,\n    onSelect,\n  } = props;\n\n  // use hooks for manage states, e.g. switching a month\n  const {\n    currentMonthTimestamp,\n    onPrevMonth,\n    onNextMonth,\n  } = useCalendarMonth(selected || Date.now() as Timestamp);\n\n  return (\n    \u003cCalendar\n      // pass states and callbacks from logic hooks\n      monthTimestamp={currentMonthTimestamp}\n      onPrevMonth={onPrevMonth}\n      onNextMonth={onNextMonth}\n    \u003e\n      {(dayTimestamp) =\u003e (\n        \u003cCalendarDay\n          // highlight the selected day\n          isSelected={selected === dayTimestamp}\n          // select the clicked day\n          onClick={() =\u003e onSelect(dayTimestamp)}\n        \u003e\n          {/* display a date */}\n          {(new Date(dayTimestamp)).getDate()}\n        \u003c/CalendarDay\u003e\n      )}\n    \u003c/Calendar\u003e\n  );\n};\n```\n\n#### Datepicker with 2 calendars\n```js\nconst BigDatepicker: FC\u003cProps\u003e = () =\u003e {\n  ...\n\n  return (\n    \u003c\u003e\n      {/* 1st calendar */}\n      \u003cCalendar monthTimestamp={currentMonthTimestamp}\u003e\n        ...\n      \u003c/Calendar\u003e\n      {/* 2nd calendar */}\n      \u003cCalendar monthTimestamp={nextMonthTimestamp}\u003e\n        ...\n      \u003c/Calendar\u003e\n    \u003c/\u003e\n  );\n};\n```\n\n## License\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffaustienf%2Fdatepicker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffaustienf%2Fdatepicker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffaustienf%2Fdatepicker/lists"}