
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
react-tab-controller
Advanced tools
Simple roving
tabIndexfor React.
A roving tabIndex is an a11y technique used for making sure only one
element in a list or group of items is focusable at a time, so the user
can quickly skip a possible large list of items without having to tab
through all elements.
This is accomplished by setting only one children in the group of items
with a tabIndex of 0, which is the current selected item, and all other
items with a value of -1. Then, to change the selected item, you can use
the keyboard arrow keys to jump through the items in the group.
yarn add react-tab-controller
# or
npm install react-tab-controller
You can also try out the live demo at CodeSandbox!
import React, { useRef } from 'react'
import {
TabController,
useControlledTabIndex,
} from 'react-tab-controller'
const MyRadioGroup = () => {
return (
<TabController>
<RadioButton />
<RadioButton />
<RadioButton />
</TabController>
)
}
const RadioButton = ({ label }) => {
const buttonRef = useRef(null)
const { onKeyDown, tabIndex } = useControlledTabIndex(buttonRef, label)
return (
<div role="radio" tabIndex={tabIndex} onKeyDown={onKeyDown}>
{label}
</div>
)
}
FAQs
> Simple roving `tabIndex` for React.
We found that react-tab-controller 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
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.