Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Inspired by Downshift, this library intends to provide solutions for people wanting to add accessible navigation dropdowns to their apps.
Downshift works primarily as a combobox, that is to say, a text input and a select input combined. As such it, at the very least, expects a list of items, from which one can 'select' an item. These behaviours collide with user expectations when dealing with a navigation dropdown. Link items should focus when tabbing through the page, unlike Downshift, which uses arrow-keys for item to item navigation. This library is meant for non-selectable items (actionable items) and does not intend to support complexities like nested dropdown lists.
npm install --save dropshift
import React, { Component, Fragment } from 'react'
import Dropshift from 'dropshift'
class Example extends Component {
render () {
return (
<Dropshift>
{
({getToggleButtonProps, getMenuProps, isOpen}) => (
<Fragment>
<button {...getToggleButtonProps()}>
Menu
</button>
<nav {...getMenuProps()}>
//...links here
</nav>
</Fragment>
)
}
</Dropshift>
)
}
}
MIT © vidjuheffex
FAQs
render prop pattern, accessible link menus
We found that dropshift 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.