
Security News
GitHub Actions Supply Chain Attack Puts Thousands of Projects at Risk
A compromised GitHub Action exposed secrets in CI/CD logs, putting thousands of projects at risk and forcing developers to urgently secure their workflows.
react-curved-arrow
Advanced tools
Fancy curved arrows for your React project! Great for tutorials and product tours!
https://react-curved-arrow.nickjanssen.com/
yarn add react-curved-arrow
import CurvedArrow from "react-curved-arrow";
// Usage
<CurvedArrow />
Name | Type | Description | Default |
---|---|---|---|
fromSelector | DOM selector | DOM element from which your arrow will start. | body |
fromOffsetX | number | Amount of pixels to offset the arrow from the DOM element on the X axis. | 0 |
fromOffsetY | number | Amount of pixels to offset the arrow from the DOM element on the Y axis. | 0 |
toSelector | DOM selector | DOM element to which your arrow will go to. | (same as fromSelector) |
toOffsetX | number | Amount of pixels to offset the arrow from the DOM element on the X axis. | 0 |
toOffsetY | number | Amount of pixels to offset the arrow from the DOM element on the Y axis. | 0 |
middleX | number | Middle point X position. | 0 |
middleY | number | Middle point Y position. | 0 |
width | number | Width of the arrow and arrowhead. | 8 |
color | color | Color of the arrow and arrowhead. | "black" |
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. | |
debugLine | boolean | Show debug dots and lines for fromOffset, toOffset and middle vectors. | false |
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 |
zIndex | number | Adjust the z-index for this arrow. | 0 |
Made with ❤️ by Nick Janssen
Also check out Styled Page, a tool that lets you visually build React apps & components!
MIT
FAQs
Curvy arrows for your React project!
The npm package react-curved-arrow receives a total of 146 weekly downloads. As such, react-curved-arrow popularity was classified as not popular.
We found that react-curved-arrow demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A compromised GitHub Action exposed secrets in CI/CD logs, putting thousands of projects at risk and forcing developers to urgently secure their workflows.
Research
Security News
A malicious Maven package typosquatting a popular library is secretly stealing OAuth credentials on the 15th of each month, putting Java developers at risk.
Security News
Socket and Seal Security collaborate to fix a critical npm overrides bug, resolving a three-year security issue in the JavaScript ecosystem's most popular package manager.