Highlight
Highlight emphasizes matching fragments inside longer strings, reusing the Text component so typography settings stay consistent across platforms.
Examples
(3)Properties
(6)Playground
Basic
Default highlight behavior with a single search term. Matching fragments are wrapped with the theme-aware highlight styles.
Multiple
Pass an array to highlight several distinct substrings. Every match shares the same styles by default.
Styles
Swap the marker color with the
highlightColor prop, passing any theme palette name. The default marker style (yellow background, unchanged text) is preserved.Scan to open this page on your phonereact-ui-library.com/components/Highlight
</>
react-ui-library
100+ accessible, themeable components that work seamlessly across iOS, Android, and Web.
A Platform Blocks product.
Quick Links
Resources