
Security News
Meet Socket at Black Hat Europe and BSides London 2025
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.
deku-search
Advanced tools

deku-search is a simple Autocomplete Search component
npm install deku-search --save
Pass in your items as a prop to deku-search. The items must be an array of objects with value and id, and any other props you may need, which will not be displayed. Check out the example for more info.
/** @jsx element */
import Search from 'deku-search'
import { element, createApp } from 'deku'
function HiItems(items) {
console.log(items)
}
let items = [
{ id: 0, value: 'ruby' },
{ id: 1, value: 'javascript' },
{ id: 2, value: 'lua' },
{ id: 3, value: 'go' },
{ id: 4, value: 'julia' }
]
function update () {
render(<Search items={items}
placeholder='Pick your language'
NotFoundPlaceholder='No items found...'
maxSelected={3}
multiple={true}
onItemsChanged={ (items) => HiItems(items) } />, {})
}
var render = createApp(document.body, update)
update()
items (required)List of Items to filter through, an array of items with value and id, and any other props. value is displayed. let items = [{ id: 0, value: 'ruby' }, { id: 1, value: 'lua' }
multiple (optional)Defaults to false, set as true if you want multiple items in the list, false for a single selection dropdown.
maxSelected (optional)Defaults to 100, a maximum number of items allowed to be selected
placeholder (optional)placeholder for the input
NotFoundPlaceholder (optional)The placeholder shown when no results are found
onItemsChanged (optional)Handler returns the items from the Search autocomplete component when items are added or removed from the list.
onKeyChange (optional)Handler returns the search value on key change.
deku-search can be used with your own custom styles. A minimal deku-search.css style sheet is included.
npm install
npm run build
npm test
npm start
FAQs
a simple Search Autocomplete component
The npm package deku-search receives a total of 3 weekly downloads. As such, deku-search popularity was classified as not popular.
We found that deku-search 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.

Security News
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.

Security News
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.