
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
@strothj/react-archer
Advanced tools
🏹 Draw arrows between DOM elements in React 🖋
npm install react-archer --save or yarn add react-archer

import { ArcherContainer, ArcherElement } from 'react-archer';
const rootStyle = { display: 'flex', justifyContent: 'center' };
const rowStyle = { margin: '200px 0', display: 'flex', justifyContent: 'space-between', }
const boxStyle = { padding: '10px', border: '1px solid black', };
const App = () => {
return (
<div>
<ArcherContainer strokeColor='red' >
<div style={rootStyle}>
<ArcherElement
id="root"
relations={[{
from: { anchor: 'bottom' },
to: { anchor: 'top', id: 'element2' }
}]}
>
<div style={boxStyle}>Root</div>
</ArcherElement>
</div>
<div style={rowStyle}>
<ArcherElement
id="element2"
relations={[{
from: { anchor: 'right'},
to: { anchor: 'left', id: 'element3' },
label: <div style={{ marginTop: '-20px' }}>Arrow 2</div>,
}]}
>
<div style={boxStyle}>Element 2</div>
</ArcherElement>
<ArcherElement id="element3">
<div style={boxStyle}>Element 3</div>
</ArcherElement>
<ArcherElement
id="element4"
relations={[{
from: { anchor: 'left'},
to: { anchor: 'right', id: 'root' },
label: 'Arrow 3',
}]}
>
<div style={boxStyle}>Element 4</div>
</ArcherElement>
</div>
</ArcherContainer>
</div>
);
}
export default App;
ArcherContainerstrokeColor: PropTypes.stringA color string '#ff0000'
strokeWidth: PropTypes.numberA size in px
arrowLength: PropTypes.numberA size in px
arrowThickness: PropTypes.numberA size in px
style: PropTypes.objectclassName: PropTypes.stringchildren: PropTypes.nodeArcherElementid: PropTypes.stringstyle: PropTypes.objectclassName: PropTypes.stringrelations: PropTypes.arrayOf(relation)The relation object has the following shape:
{
from: {
anchor: PropTypes.oneOf([ 'top', 'bottom', 'left', 'right' ])
},
to: {
anchor: PropTypes.oneOf([ 'top', 'bottom', 'left', 'right' ])
id: PropTypes.string
},
label: PropTypes.node
}
FAQs
Draw arrows between DOM elements in React
We found that @strothj/react-archer 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.