
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
@coopdigital/component-searchable-dropdown
Advanced tools
A Co-op styled searchable dropdown (aka combobox) React component built using Downshift.
Install via npm or yarn:
npm install @coopdigital/component-searchable-dropdown
yarn add @coopdigital/component-searchable-dropdown
You must have the Co-op foundations and foundations-forms css packages installed in your project. You will also need React 17 or higher.
@import "@coopdigital/foundations/dist/vars/vars.css";
@import "@coopdigital/foundations/dist/foundations.css";
@import "@coopdigital/foundations-forms/dist/forms.css";
@import "@coopdigital/component-searchable-dropdown/dist/styles.css";
import { SearchableDropdown } from "@coopdigital/component-searchable-dropdown";
<SearchableDropdown
label="My favourite animal is a..."
id="animals"
options={["Cat", "Dog", "Frog", "Panda", "Sloth"]}
/>
These props are required for the component to render:
| prop | type | description |
|---|---|---|
label | string | Text for the associated element label. |
id | string | A unique identifier for the element. |
options | array | Array of strings to use for option values |
The component can be further customised using the props below:
| prop | type | description | default |
|---|---|---|---|
className | string | Additional class (or classes) to append to the outer coop-c-combobox element | - |
compact | bool | Reduces the input font size to 1rem | false |
noResults | string | String to display when no matching options are found | No relevant options |
onSelect | func | Callback function when an option is selected, receives the selected value as its only parameter | - |
placeholder | string | Placeholder text to display when no option is selected | - |
style | object | CSS object with inline styles to be added to the outer coop-c-combobox element | - |
<SearchableDropdown
label="My favourite animal is a..."
id="animals"
options={["Cat", "Dog", "Frog", "Panda", "Sloth"]}
className="additional-class another-class"
compact
placeholder="Select option"
onSelect={(value) => {
console.log(value);
}}
style={{ width: "300px" }}
/>
Copyright (c) 2022 Co-operative Group Limited. Licensed MIT.
FAQs
Co-op Component: Searchable Dropdown
We found that @coopdigital/component-searchable-dropdown demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 open source maintainers 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 discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.