{"id":13725446,"url":"https://github.com/nickjanssen/react-curved-arrow","last_synced_at":"2025-07-02T08:34:39.952Z","repository":{"id":42529123,"uuid":"243234720","full_name":"nickjanssen/react-curved-arrow","owner":"nickjanssen","description":"Fancy curvy arrows for your React project! Great for tutorials and product tours!","archived":false,"fork":false,"pushed_at":"2023-11-20T15:03:02.000Z","size":410,"stargazers_count":203,"open_issues_count":7,"forks_count":14,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T08:09:09.887Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://react-curved-arrow.nickjanssen.com/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nickjanssen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2020-02-26T10:25:31.000Z","updated_at":"2024-08-31T16:15:31.000Z","dependencies_parsed_at":"2024-02-04T13:07:20.181Z","dependency_job_id":"26b010db-6aaf-491a-9caf-4a5b37d06a91","html_url":"https://github.com/nickjanssen/react-curved-arrow","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/nickjanssen%2Freact-curved-arrow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nickjanssen%2Freact-curved-arrow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nickjanssen%2Freact-curved-arrow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nickjanssen%2Freact-curved-arrow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nickjanssen","download_url":"https://codeload.github.com/nickjanssen/react-curved-arrow/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246927838,"owners_count":20856198,"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":"2024-08-03T01:02:23.508Z","updated_at":"2025-04-03T03:11:23.882Z","avatar_url":"https://github.com/nickjanssen.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"![logo](https://react-curved-arrow.nickjanssen.com/logo.png)\nFancy curved arrows for your React project! Great for tutorials and product tours!\n\nhttps://react-curved-arrow.nickjanssen.com/\n\n## Installation\n\n`yarn add react-curved-arrow`\n\n## Usage\n\n```jsx\nimport CurvedArrow from \"react-curved-arrow\";\n\n// Usage\n\u003cCurvedArrow /\u003e\n```\n\n## Props\n|Name|Type|Description|Default|\n|--- |--- |--- |--- |\n|fromSelector|DOM selector|DOM element from which your arrow will start.|body|\n|fromOffsetX|number|Amount of pixels to offset the arrow from the DOM element on the X axis.|0|\n|fromOffsetY|number|Amount of pixels to offset the arrow from the DOM element on the Y axis.|0|\n|toSelector|DOM selector|DOM element to which your arrow will go to.|(same as fromSelector)|\n|toOffsetX|number|Amount of pixels to offset the arrow from the DOM element on the X axis.|0|\n|toOffsetY|number|Amount of pixels to offset the arrow from the DOM element on the Y axis.|0|\n|middleX|number|Middle point X position.|0|\n|middleY|number|Middle point Y position.|0|\n|width|number|Width of the arrow and arrowhead.|8|\n|color|color|Color of the arrow and arrowhead.|\"black\"|\n|hideIfFoundSelector|DOM selector|Optional. if the arrow can find this selector, it will hide itself. Useful for product tours when you only want to show an arrow whenever a user hasn't performed an action yet such as opening a menu.||\n|debugLine|boolean|Show debug dots and lines for fromOffset, toOffset and middle vectors.|false|\n|dynamicUpdate|boolean|Automatically adjust the arrow whenever the from/to DOM elements update. Useful for dynamic content such as sliding menus or content that is within a scrolling container.|false|\n|zIndex|number|Adjust the z-index for this arrow.|0|\n\n## Try it out!\n\n[Open in CodeSandbox](https://codesandbox.io/s/wild-wave-32jt9)\n\nMade with ❤️ by [Nick Janssen](https://twitter.com/nickjanssen_com)\n\n## Special thanks\n\nSpecial thanks to [prscoelho](https://github.com/prscoelho) for his `quadraticCurveMinMax` implementation!\n\n# License\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnickjanssen%2Freact-curved-arrow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnickjanssen%2Freact-curved-arrow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnickjanssen%2Freact-curved-arrow/lists"}