Components/SearchInput

SearchInput

Search field with clear button, debounce, and loading spinner.

Installation

Examples

With results

Type to search, clear to reset.

Veloria UI v0.2.0

Changelog · 2 days ago

Veloria components

Documentation

veloria-ui package

npm · 11.2k weekly downloads

API Reference

PropTypeDefaultDescription
valuestringControlled value.
onChange(v: string) => voidCalled on input change.
onSearch(v: string) => voidCalled on Enter or debounce timeout.
loadingbooleanfalseShows a spinner inside the input.
debouncenumber300Debounce delay in ms.
placeholderstring'Search...'Placeholder text.