
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
react-connect-line
Advanced tools
You can match your react components by connecting the dots with lines.
You can match your react components by connecting the dots with lines.
npm install react-connect-line
import { useState, useEffect } from "react";
import { ConnectLine, ItemsProps } from 'react-connect-line';
function App() {
const [items, setItems] = useState<ItemsProps[]>([]);
const [isCorrectMatch, setIsCorrectMatch] = useState(false);
useEffect(() => {
const items = [
{
source: { text: "one" },
target: { text: "1" },
},
{
source: { text: "two" },
target: { text: "2" },
},
{
source: { text: "three" },
target: { text: "3" },
},
];
setItems(items);
}, []);
console.log(isCorrectMatch);
return (
<ConnectLine
items={items}
setIsCorrectMatch={setIsCorrectMatch}
containerSize={800}
lineColor="orange"
lineWidth={10}
dotColor="orange"
dotSize={46}
fontSize={24}
/>
);
}
export default App;
| Prop | Description | Type | Default |
|---|---|---|---|
| items | Contents to connect with a line | ItemsProps[] | required |
| isLayoutUpAndDown | Whether the source and target are placed top and bottom | boolean | false |
| setIsCorrectMatch | A function to store information about whether the source and target are correctly paired | React.Dispatch<React.SetStateAction> | undefined |
| containerSize | Size of the ConnectLine component (height if the layout is top or bottom, width if the layout is on both sides) | number | 100% |
| lineColor | Color of the line connecting the dots | string | black |
| lineWidth | Width of the line connecting the dots | number | 10 |
| dotColor | Color of the dot | string | black |
| dotSize | Size of the dot (width and height are the same) | number | 46 |
| textColor | Color of the item's text | string | black |
| fontSize | Size of the item's text | number | 50 |
| imageSize | Size of the item's image | number | 300 |
Contributions are always welcome!
MIT
FAQs
You can match your react components by connecting the dots with lines.
We found that react-connect-line 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.