
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.
evergreen-autocomplete
Advanced tools
This package implements a Autocomplete component. This component only deals with rendering the list, not the actual input element.

evergreen-popover for the popover<Autocomplete onChange={handleChange} items={items}>
{({ key, getInputProps, getRef }) => (
<TextInput key={key} innerRef={ref => getRef(ref)} {...getInputProps()} />
)}
</Autocomplete>
static propTypes = {
items: PropTypes.array.isRequired,
selectedItem: PropTypes.any,
defaultSelectedItem: PropTypes.any,
children: PropTypes.func.isRequired,
itemSize: PropTypes.number,
renderItem: PropTypes.func,
itemsFilter: PropTypes.func,
isFilterDisabled: PropTypes.bool,
popoverMinWidth: PropTypes.number,
popoverMaxHeight: PropTypes.number,
useSmartPositioning: PropTypes.bool,
...Downshift.propTypes,
}
static defaultProps = {
itemToString: i => (i == null ? '' : String(i)),
itemSize: 32,
itemsFilter: fuzzyFilter,
isFilterDisabled: false,
popoverMinWidth: 200,
popoverMaxHeight: 240,
useSmartPositioning: false,
renderItem: autocompleteItemRenderer,
}
import { storiesOf } from '@storybook/react'
import React from 'react'
import Box from 'ui-box'
import starWarsNames from 'starwars-names'
import { TextInput } from 'evergreen-text-input'
import { Autocomplete } from '../src/'
// Generate a big list of items
const items = [
...starWarsNames.all,
...starWarsNames.all.map(x => `${x} 2`),
...starWarsNames.all.map(x => `${x} 3`)
].sort((a, b) => {
const nameA = a.toUpperCase()
const nameB = b.toUpperCase()
if (nameA < nameB) {
return -1
}
if (nameA > nameB) {
return 1
}
return 0
})
const handleChange = selectedItem => {
console.log(selectedItem)
}
storiesOf('autocomplete', module).add('Autocomplete', () => (
<Box padding={40}>
{(() => {
document.body.style.margin = '0'
document.body.style.height = '100vh'
})()}
<Autocomplete onChange={handleChange} items={items}>
{({ key, getInputProps, getRef }) => (
<TextInput
key={key}
innerRef={ref => getRef(ref)}
{...getInputProps()}
/>
)}
</Autocomplete>
</Box>
))
FAQs
React components: Autocomplete
The npm package evergreen-autocomplete receives a total of 5 weekly downloads. As such, evergreen-autocomplete popularity was classified as not popular.
We found that evergreen-autocomplete demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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.