
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-arrow-nav
Advanced tools
A simple react component to enable keyboard navigation through it's child components.
yarn add react-arrow-nav
OR
npm install react-arrow-nav
import ArrowNav from "react-arrow-nav";
class TodoItem extends React.Component {
render() {
<ArrowNav>
<div>Item 1</div>
<div>Item 2</div>
<FancyItem>Item 3</FancyItem>
</ArrowNav>;
}
}
function FancyItem({ tabIndex, children }) {
return (
<button {...fancyProps} tabIndex={tabIndex}>
{children}
</button>
);
}
mode
The direction of keyboard navigation.
default : ArrowNav.VERTICAL
values = [ ArrowNav.VERTICAL , ArrowNav.HORIZONTAL , ArrowNav.BOTH ]
...any other prop will be passed to the wrapping div element.
If the child elements are not DOM elements, make sure they pass down
tabIndexprop to the DOM element
FAQs
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.