<GlobalSearchResultItem>

View as Markdown

Note: The search functionality is only available on the TalkJS Growth plan and above.

The <GlobalSearchResultItem> component is displayed for each match found by the search functionality.

interface GlobalSearchResultItemProps

Properties

A collection of objects which are passed to all GlobalSearchResultItem theme components.

conversation
: ConversationSnapshot

The conversation that's being displayed.

isSelected
: boolean

If true, this search result is the currently selected one.

message (optional)
: MessageSnapshot

The message containing the result item. If it's missing, then the search match is on the conversation itself.

Example

In the default theme, the <GlobalSearchResultItem> component is implemented as follows:

GlobalSearchResultItem.js
1// loading...