React Search BarFree

Accessible React search bar with highlighted results, keyboard navigation, and polished loading and empty states.

Add to your project

Checking access...

Works with your AI tools

ClaudeClaude*
CodexCodex*
LovableLovable
Base44Base44
Figma MakeFigma Make
ReplitReplit*
CursorCursor*
v0v0

* Compatible with most projects that use the default React/Next.js framework.

Built With

ReactTailwind CSSSolar Icons

Props

PropTypeDescription
resultsSearchResult[]Results displayed in the listbox
valuestringControlled search query
defaultValuestringInitial uncontrolled query
onQueryChange(query: string) => voidCalled whenever the query changes
onSelect(result: SearchResult) => voidCalled when a result is selected
loadingbooleanShow the loading state
emptyTextstringMessage shown when no results exist
classNamestringStyles for the outer wrapper

More Input Components

React Number Input preview

Labeled React number input with an optional unit, stacked controls, bounds, and empty values.

A six-digit PIN input with paste support and keyboard navigation for verification codes.

1500
0

A vertical range input with configurable value labels, thumb shapes, colors, and height.

A premium search input with a focused state and an icon that becomes a submit action as you type.

A minimalist input spinner for choosing quantities with buttons, typing, or arrow keys.