
Security News
curl Shuts Down Bug Bounty Program After Flood of AI Slop Reports
A surge of AI-generated vulnerability reports has pushed open source maintainers to rethink bug bounties and tighten security disclosure processes.
solid-suggest
Advanced tools
solid-suggest is a UI component for SolidJS developers that renders a text input with dropdown suggestions. It can be used in scenarios such as search suggestions or results triggered by text input.
It's a super simple library without many batteries included. See following sections for what it can and can't do for you.
Because of its simplicity, I also expect it to be usable even without updates for years.
Install from the npm registry using npm or your favorite alternate package manager (yarn, pnpm).
npm install solid-suggest --save
Import into your SolidJS project.
import Suggest from "solid-suggest";
const items = [
{ name: "Scout", class: "Offense" },
{ name: "Medic", class: "Support" },
{ name: "Heavy", class: "Defense" }
];
<Suggest
renderSuggestion={item => `${item.name} (${item.class})`}
onQuery={query =>
items.filter(
item =>
item.name.toLowerCase().includes(query.toLowerCase()) ||
item.class.toLowerCase().includes(query.toLowerCase())
)
}
onSelect={item => setSelected(item.name)}
/>
See more in the docs.
Exposes two main interfaces as functions that you implement:
onQuery - solid-suggest runs it on initial render and on each user input change. For solid-suggest, your implementation answers the question "what suggestions should solid-suggest show in the current state?"onSelect - solid-suggest invokes this to emit the user's selection to your code.All this library does is provide JavaScript/TypeScript bones for a suggestions dropdown so that you don't have to clutter your application with the required internal states, keyboard and mouse handling, etc.
debounceMs prop (in milliseconds). If not set or zero, input is not debounced.Some more questions are answered in the docs.
onQuery implementations. Consider supplying a debounceMs value to reduce network calls.Some more questions are answered in the docs.
Find documentation and tips here.
npm install
... before anything else.
npm run devOnly
... runs a continuous watcher for changes to library code that transpiles TypeScript to a dist/ dir at project top level.
npm run devDemo
... runs a local server that you can use to see and iterate on the demo page at http://localhost:8000/docs/index.htm. This is a basic HTML page that imports some libraries from CDNs. Hot reload/replacement is not enabled, so it needs manual refreshing.
npm run devWithDemo
... runs both of the above at the same time.
FAQs
Headless search suggestion dropdown UI library for SolidJS
We found that solid-suggest demonstrated a healthy version release cadence and project activity because the last version was released less than 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
A surge of AI-generated vulnerability reports has pushed open source maintainers to rethink bug bounties and tighten security disclosure processes.

Product
Scan results now load faster and remain consistent over time, with stable URLs and on-demand rescans for fresh security data.

Product
Socket's new Alert Details page is designed to surface more context, with a clearer layout, reachability dependency chains, and structured review.