SearchList

Command search with instant filtering, keyboard focus, and an empty state.

Installation

This component is primitive-agnostic — same source under both flavors.

Preview

Inspect
5 results available

Source

Adapted from slev12397/beautiful-ui under the MIT License. Commercial icons were replaced and demo analytics were removed; attribution remains bundled with the component foundation.

API Reference

PropTypeDefaultDescription
itemsreadonly string[]—Searchable options.
querystring—Controlled search value.
defaultQuerystring""Initial query.
placeholderstring—Input placeholder.
onQueryChange(query: string) => void—Reports query changes.
onSelect(item: string) => void—Handles option selection.