Search Bar

Input optimized for query entry, clearing, and optional suggestions.

Import/Installation

import { SearchBar } from "@lottiefiles/creator-plugins-ui";

Preview

Usage

<SearchBar onSearch={setQuery} showSuggestions suggestions={["Fade In", "Slide"]} />

Props

PropTypeDefaultRequiredDescription
onSearch(query: string) => voidNoFired when a search should be executed.
onClear() => voidNoFired when the clear action is triggered.
debounceMsnumber300NoDebounce delay for `onSearch` in milliseconds. Set to `0` for immediate search.
clearablebooleantrueNoWhether the clear button is shown when input has value.
suggestionsstring[]NoCandidate suggestion values.
onSuggestionSelect(suggestion: string) => voidNoFired when a suggestion is selected.
showSuggestionsbooleanfalseNoEnables the suggestions popover.
variant"default" | "error""default"NoVisual style of the input.
size"sm" | "default""default"NoCompact size scale.
Last updated: August 5, 2026 at 11:47 AMEdit this page