+++ # ----------------------------------------------------------------------- # Do not edit this file. It is automatically generated by API Documenter. # ----------------------------------------------------------------------- title = "findHighlightChunksInText" keywords = ["grafana","documentation","sdk","@grafana/data"] type = "docs" +++ ## findHighlightChunksInText() function ### findHighlightChunksInText() function Adapt findMatchesInText for react-highlight-words findChunks handler. See https://github.com/bvaughn/react-highlight-words\#props Signature ```typescript export declare function findHighlightChunksInText({ searchWords, textToHighlight, }: { searchWords: string[]; textToHighlight: string; }): any[]; ``` Import ```typescript import { findHighlightChunksInText } from '@grafana/data'; ``` Parameters | Parameter | Type | Description | | --- | --- | --- | | { searchWords, textToHighlight, } | {
searchWords: string[];
textToHighlight: string;
} | | Returns: `any[]`