
Company News
/Security News
Socket Selected for OpenAI's Cybersecurity Grant Program
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.
react-list-select-extended
Advanced tools
A list with selectable and keyboard navigable items. Useful as a dropdown (autocomplete), right click menu, or a simple list with actions triggered on item select.
View the example.
import List from 'react-list-select'
let items = [
'Google',
'TED',
'GitHub',
'Big Think',
'Microsoft',
]
let list = (
<List
items={items}
selected={[0]}
disabled={[4]}
multiple={true}
onChange={(selected: number) => { console.log(selected) }}
listItemClassName={"list--list-item-custom-classes"}
/>
)
ReactDOM.renderComponent(list, document.getElementById('container'))
For lists inside a block with overflow, you can define a function to be called when the list item change to focused and act on the node the way you want.
let example7 = <List items={e7items} onListItemReceiveFocus={(focusedIndex, element) => {
let domElement = ReactDOM.findDOMNode(element);
domElement.scrollIntoView({
behavior: 'smooth',
block: 'nearest'
});
}}/>
number index - items array indexSelect an item from the list
number index - items array indexDeselect an item from the list
number index - items array indexDisable an item from the list to be selected or focused
number index - items array indexEnable a disabled item to be focused or selected
focus next item from the list
focus previous item from the list
number index - items array indexFocus an item from the list
Reset list state
FAQs
List with selectable and navigable items
We found that react-list-select-extended 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.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.

Security News
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.

Research
/Security News
Campaign of 108 extensions harvests identities, steals sessions, and adds backdoors to browsers, all tied to the same C2 infrastructure.