{"id":16184582,"url":"https://github.com/rmariuzzo/react-chronos","last_synced_at":"2026-03-12T16:01:47.161Z","repository":{"id":143904950,"uuid":"71292647","full_name":"rmariuzzo/react-chronos","owner":"rmariuzzo","description":"⛓ React chronology component providing dual chronological timelines.","archived":false,"fork":false,"pushed_at":"2019-03-11T06:55:11.000Z","size":222,"stargazers_count":40,"open_issues_count":2,"forks_count":14,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-28T14:11:16.363Z","etag":null,"topics":["chronology","dual-chronological-timelines","react","reactjs"],"latest_commit_sha":null,"homepage":"","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/rmariuzzo.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":"2016-10-18T21:24:06.000Z","updated_at":"2023-09-11T08:28:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"e4737183-d113-4e3a-8eda-b51068eb89f5","html_url":"https://github.com/rmariuzzo/react-chronos","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rmariuzzo%2Freact-chronos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rmariuzzo%2Freact-chronos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rmariuzzo%2Freact-chronos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rmariuzzo%2Freact-chronos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rmariuzzo","download_url":"https://codeload.github.com/rmariuzzo/react-chronos/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243960435,"owners_count":20375102,"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":["chronology","dual-chronological-timelines","react","reactjs"],"created_at":"2024-10-10T07:10:35.597Z","updated_at":"2026-03-12T16:01:47.147Z","avatar_url":"https://github.com/rmariuzzo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React Chronos\n\n⛓ React chronology component providing dual chronological timelines.\n\n![Preview of dual chronological timelines](https://github.com/rmariuzzo/react-chronos/raw/master/banner.gif)\n\n### Installation\n\n```shell\nnpm install react-chronos --save\n```\n\n### Usage\n\n```jsx\nimport Chronology from 'react-chronos';\n\n\u003cChronology type=\"vertical\"\u003e\n    {events.map(event =\u003e (\n        \u003cdiv class=\"marker\"\u003e\u003c/div\u003e\n        \u003cdiv class=\"event\"\u003e{ event.details }\u003c/div\u003e\n    ))}\n\u003c/Chronology\u003e\n```\n\n## Documentation\n\n### `Chronology`\n\nThe `Chronology` component is the main and only component provided by `react-chronos`. It accepts the following properties:\n\n#### `type`\n\nThe type of chronology and timeline to render. It can one of the following values: `horizontal` or `vertical`. If not specified, the default will be `vertical`.\n\n#### `eventSelector`\n\nThe query selector to use to find **events** inside the chronology.\n\n#### `markerSelector`\n\nThe query selector to use to find **markers** inside the chronology.\n\n#### `markerClassNames`\n\nThe object that defines the class names to be applied to **markers**. The shape of the object and its default values is as follow:\n\n```js\n{\n    left: 'marker-left',\n    right: 'marker-right',\n    top: 'marker-top',\n    bottom: 'marker-bottom',\n}\n```\n\nFor a vertical chronology the values for `left` and `right` will be applied to **markers** where its related **event** was positioned to any of those sides. The same behavior goes for horizontal chronology using `top` and `bottom`.\n\n#### `markerStyles`\n\nThe object that defines the inline styles to be applied to **markers**. The shape of the object and its default values is as follow:\n\n```js\n{\n    left: {},\n    right: {},\n    top: {},\n    bottom: {},\n}\n```\n\nFor a vertical chronology the values for `left` and `right` will be applied to **markers** where its related **event** was positioned to any of those sides. The same behavior goes for horizontal chronology using `top` and `bottom`.\n\n## Development\n\nTBD\n\n```shell\n# For quick development and hot reload...\nnpm run storybook\n\n# For building the distribution package...\nnpm start\n```\n\n## Tests\n\nTBD\n\n```shell\nnpm test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frmariuzzo%2Freact-chronos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frmariuzzo%2Freact-chronos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frmariuzzo%2Freact-chronos/lists"}