HighlightedText

fun HighlightedText(text: String, query: String, modifier: Modifier = Modifier, style: TextStyle = TextStyle.Default, color: Color = Color.Unspecified)(source)

A Text component that highlights occurrences of query within text using the tertiary container color. Each matching token in the query is highlighted independently (case-insensitive).