Skip to content

Interface: SearchBoxProps

Props for SearchBox.

optional className?: string

Extra class names for the outer container.


optional debounceMs?: number

Debounce in ms before a keystroke triggers a request. Defaults to 200.

UseSearchOptions.debounceMs


optional index?: string

Which index to search (name or alias). Defaults to the plugin’s default index.

UseSearchOptions.index


optional limit?: number

Max hits to request. Defaults to the plugin’s configured page size.

UseSearchOptions.limit


optional minLength?: number

Minimum query length before searching. Defaults to 1.

UseSearchOptions.minLength


optional mode?: "hybrid" | "vector" | "keyword"

Match mode. Defaults to the plugin’s configured mode.

UseSearchOptions.mode


optional onSelect?: (hit) => void

Called when the user picks a hit (click or Enter on a focused row).

Record<string, unknown> = ...

string = ...

string = ...

number = ...

void


optional placeholder?: string

Placeholder text for the input.


optional renderHit?: (hit) => ReactNode

Render one hit row. Defaults to a title + id + score badge.

Record<string, unknown> = ...

string = ...

string = ...

number = ...

ReactNode


optional showIndex?: boolean

Show the source index name on each hit (useful for universal search).


optional universal?: boolean

Search every configured index and merge results (universal search).

UseSearchOptions.universal