A scoped and simplified part of the headless state that is relevant to the SearchBox controller.

interface SearchBoxState {
    isLoading: boolean;
    isLoadingSuggestions: boolean;
    searchBoxId: string;
    suggestions: Suggestion[];
    value: string;
}

Hierarchy (View Summary)

Properties

isLoading: boolean

Determines if a search is in progress.

isLoadingSuggestions: boolean

Determines if a query suggest request is in progress.

searchBoxId: string

The search box ID.

suggestions: Suggestion[]

The query suggestions for the search box query.

value: string

The current query in the search box.