
Research
/Security News
Toptal’s GitHub Organization Hijacked: 10 Malicious Packages Published
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
downshift-hooks
Advanced tools
A set of hooks to build simple, flexible, WAI-ARIA compliant React dropdown components.
A set of hooks to build simple, flexible, WAI-ARIA compliant React dropdown components.
You need an autocomplete/dropdown/select experience in your application and you want it to be accessible. You also want it to be simple and flexible to account for your use cases.
This set of hooks is inspired by downshift and aims to provide functionality and accessibility to dropdown and combobox components.
At the moment, the first hook developed is useSelect()
and it means to implement the select dropdown ARIA design pattern. Another future 3 new hooks should be implemented: useAutocomplete()
, useMultipleSelect()
and useMultipleAutocomplete()
. Having one hook for each different widget allows the user to write little additional stateful logic (hopefully none) in order to make them accessible and functional. That being said, the hooks still follow the vanilla Downshift
principle of being completely customisable.
The API will be as similar as possible for each of these hooks and will follow the one already present in Downshift. Differences will appear only when the design pattern requires for them to do so.
This module is distributed via npm which is bundled with node and should be installed as one of your project's dependencies
:
npm install --save downshift-hooks
For a select dropdown click here.
Next steps:
useSelect()
hook.useAutocomplete()
hook (the old Downshift default component) for the combobox design pattern.multiple
versions for useSelect()
and useAutocomplete()
.Share your opinion about having separate hooks for each component case. Help out with ideas, feature prioritisation, code quality, documentation and anything else by creating Issues in this repositiory. Much appreciated!
MIT
FAQs
A set of hooks to build simple, flexible, WAI-ARIA compliant React dropdown components.
The npm package downshift-hooks receives a total of 44 weekly downloads. As such, downshift-hooks popularity was classified as not popular.
We found that downshift-hooks 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
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
Research
/Security News
Socket researchers investigate 4 malicious npm and PyPI packages with 56,000+ downloads that install surveillance malware.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.