TextHighlighter React-only
TextHighlighter serves for highlighting a substring within some text.
While not recommended, you can tweak the appearance of the highlighted piece of text. Use highlightClassName
to specify additional classes, or highlightStyle
to set custom styles. The following example does both, it adds class .g-fg-ui-red
, and sets font-weight
to 600.